
Script Data Source
Field properties that can be modified by the script
printingField “true”, “false”
The following field properties are used to reference the field, but cannot be modified by the script.With
the exception of name, modifications to these properties will be ignored.
Field properties that cannot be modified by the script
name String value enclosed with quotation marks ("fieldname")
prompt String value enclosed with quotation marks (“fieldPrompt”)
type
"label", "text", "line", "box", "image", "paragraph", "RFID", "barcode",
"block"
length Integer value
width Floating point value
height Floating point value
Examples of Field Properties Modified by Scripts
Change the left position of Field_A to 3 inches
label.fields.field.(@name == 'Field_A').@posLeft = 3.0;
Change the top position of Field_A to 2 inches
label.fields.field.(@name == 'Field_A').@posTop = 2.0;
Change the padding of Field_A to leading zeros
label.fields.field.(@name == 'Field_A').@padding = "leadingZeros";
Change the padding of Field_A to leading spaces
label.fields.field.(@name == 'Field_A').@padding = "leadingSpaces";
Change the padding of Field_A to trailing spaces
label.fields.field.(@name == 'Field_A').@padding = "trailingSpaces";
Change the padding of Field_A to centered with spaces
label.fields.field.(@name == 'Field_A').@padding = "centerWithSpaces";
Turn off padding for Field_A
label.fields.field.(@name == 'Field_A').@padding = "none";
Change the rotation of Field_A to 90 degrees
label.fields.field.(@name == 'Field_A').@rotation = "90";
Change the rotation of Field_A to 180 degrees
label.fields.field.(@name == 'Field_A').@rotation = "180";
Change the rotation of Field_A to 270 degrees
label.fields.field.(@name == 'Field_A').@rotation = "270";
Loftware LabelManager Version 10.1.1 User's Guide
297
Komentáře k této Příručce