
- 138 -
9. ClickontheClosebuttontoclosetheFunctionsdialogbox.
10. Thefunction-generatedvariableisdefinedonthelabel.Youshouldlinkittotextobject
onthelabel.
11. ClickonthesmallarrownexttoTextObjectintheToolbox.
12. ClickontheoptionUseexistingvariableandselectthevariableConcatenate.
Selectingthefunction-generatedvariableConcatenate
13. Clickonthelabelwhereyouwanttoplacethetextobject.Thetextobjectislinkedtothe
newvariableConcatenate.
Thevaluesofvariables'ID'and'NAME'aremergedandsavedtothefunction-generatedvariable
'Concatenate'everytimethelabelisprocessedforprevieworprint.
Using Visual Basic Function
VisualBasicfunctionallowsyoutoperformthemostdemandinganddifficultdatamanipulationon
thelabel.Availableareallthefunctions,proceduresandoperandsfromMicrosoftVisualBasic
script.Yourscriptcantakevaluesfromalllabelvariables,workwiththevaluesandsavetheresult
inafunction-generatedvariable.
Tocreateavisualbasicfunction,dothefollowing:
1.
Clickonthe buttonintheStandardtoolbarorselectOpenintheFilemenu.Select
thelabelfileID_CARD.LBLfromthesample.
Thelabelhasalinktothedatabasesoyouseehowtheconcatenatefunctionoperateson
asetofrecords.
2. SelectthecommandFunctionsintheDatamenu.
3. Thereisalreadyonefunctiondefinedinthelabel.IgnoreitandclickontheNewbutton.
Thedialogboxwiththepropertiesofthenewfunctionwillopen.
4. Typeinthenameforthefunction,forexample'MyVisualBasicfunction'.
5. SelecttheVisualBasicScriptfunctionfromthelistoffunctions.
Comentarios a estos manuales