The types of arguments that you can pass into a subroutine are numeric values, variables, text strings, and feature names. To pass values into arguments, type the value within the Value box of the Argument Edit dialog box, or directly into an inserted CALLSUB command in Command mode.
For details on how to do this, see "Creating a New Subroutine" and "Understanding the Argument Edit Dialog Box".
Passing Variables into a Subroutine
Arguments that can pass data back are variables. When you use a variable as an argument to a subroutine, any changes that occur to the corresponding variable in the subroutine are passed back and become the value of the variable that was passed in.
Passing Number Values into a Subroutine
Arguments can also take numeric characters.
Passing Text Strings into a Subroutine
Arguments can also take a text string. To pass a text string, make sure the alphanumeric characters are placed within double quotation marks.
Passing Feature Names into a Subroutine
You can pass feature names within curly brackets. For example, in the CALLSUB command, if you use {PNT1} as a parameter, the software passes PNT1 into the subroutine. When you pass the feature name in this manner, the subroutine has full access to that feature.