
- 88 -
Theexpressionisaone-lineVisualBasicscript.Youcanuseupto100charactersforyourexpres-
sion.
Note: Themulti-linecommandslike"if..then..else.."cannotbeusedwiththeVisualBasicexpres-
sion.Youcanuseone-lineexpressions.
AVisualBasicexpressionmustfollowtheVisualBasicscriptprogrammingsyntax.Formoreinfor-
mationonhowtowriteyourexpressions,refertotheMicrosofthelponVisualBasicscripting.Click
onthebutton'VBScriptHelp'inVBscriptstepintheTextorBarCodewizardtoopentheMicro-
softhelp.
SomecommonsamplesofVisualBasicexpressions:
Visual Basic
Expression
The result Comment
1 + 4 * 20 81 Numeric cal-
culation
"#" + LEFT
("1234567890",
5)
#12345 Working with
string functions
[MyField1] +
"-" +
[MyField2]
The values from var-
iable fields MyField1
and MyField2 are
merged together.
Concatenating
string values
Using Expression Editor
Thelabelingsoftwarehasasimpletextbuilt-ineditor.YoucanuseittodesignyourownsimpleVis-
ualBasicscripts.
TheExpressioneditorisaprogrammingtexteditorwithconstantaccesstocommandreferenceof
thescriptlanguageyouarecurrentlyusing.
TheExpressioneditorletsyouedityourscriptsandexpressionswithease.TheLoadandSavebut-
tonsallowyoutoimport/exportVisualBasicscriptsfrom/toexternaltextfiles.Theeditoruses
standardshortcutsforpositioningofthecursorandworkingwithtextfiles.StandardSearchand
Replaceshortcuts(Ctrl+F,Ctrl+R)arealsoavailable.
Theworkingwindowisdividedintofourparts.
Category This section contains the groups of available commands, functions,
and operators. Similar objects have been grouped together for eas-
ier identification and faster search.
The groups are displayed as a tree-view. Select the main group
name to display all its contents into the Name section. Or you can
click the plus sign in front of the group name (if available) to dis-
play all defined sub-groups. Then select the sub-group name to dis-
play only its contents.
Name This section will display the contents of the selected group in the
Category section. All available commands, functions, operators etc.
will be listed here. If you select one of them, its properties will be
displayed in the Description section. If you want to insert the
selected operands into the Expression field, double click its name
or click the Insert button.
Expression This section is the main workplace of the Expression editor. Use it
Kommentare zu diesen Handbüchern