Enter a Program Parameter of another program in a routine
When using program parameters of another program in a routine, access the program parameter using one of the these methods:
- Use a connection. See New Parameter or Tag dialog box.
- Define a local alias tag to a program parameter of another program. See About the Tag Editor.
- Access a program parameter of another program directly as an operand of an instruction.
Operands use the name syntax in the \<ProgramName >.<TagName>format to specify when a parameter of another program is being accessed directly for an instruction.
When an operand references a parameter of another program, you have the option to enter the name of the program or browse for the program using the tag browser.
- Enter the name of the program using the name syntax (\<ProgramName >.<TagName>).
- When you enter the name of the program, if you start by entering a back slash (\) in the name field, the text is auto completed up to the program name in the \<ProgramName>.<TagName> name syntax. The text is refined as you enter more text. When you type the first period in the \<ProgramName>.<TagName> name syntax, the auto completion text is extended to the tag level - that is, to the tag name in \<ProgramName>.<TagName> name syntax.
- For elements, members, or bits of the specified parameter, when you type a period (.) or bracket ([) after the <TagName>, the text is auto completed to the member, element, or bit level.
- For local tags, if you enter\<ProgramName> where <ProgramName> is the local program, auto completion does not occur for the ProgramName portion of the text. But once you enter the period, auto completion text appears for the tag name. If you enter a period or bracket, then the member, element, or bit appears.
- When entering the name of the operand, type ahead is supported for both program and tag names in areas of the application where type ahead is supported.
- Browse for the parameter using the tag browser.
- When selecting a parameter of another program from the tag browser, once the parameter is accepted, the name is shown in the Language Editor in the \<ProgramName>.<TagName> format.
- If the tag browser is open while type ahead is operating, the auto-completed parameter or tag, member, or element is selected in the tag browser as you type.
For more information about the tag browser, see Using the Tag Browser .
When an operand references a tag or parameter within the local scope, you have the option to specify the name of the program. For example, in a routine within MyProgram, you have the option to reference a local tag within MyProgram in the format of \MyProgram.TagName or reference the local tag by using just the TagName format. Only the TagName format is shown in the Language Editor and not the \MyProgram.TagName format.
For verification and usage rules when entering a parameter of another program, see Verification and usage rules for routines using a program parameter of another program.
Provide Feedback