Description: This function performs a scope resolution and returns a reference to the requested member within a module or other object.
Returns: Reference
Usage: Script or Steady State
Format: Scope(Object, Member)
Parameters: Object { Object value } { required } { no default }
Any expression for the object value (module) where Member may be found.
Member { text } { required } { no default }
Any text expression for the member name. This must be a simple variable or module. Array references or further scope resolution are not allowed inside the text expression.
Comments: This function is the same as the '\' operator. (Object\Member). Unlike the backslash operator, the Scope function allows any text string to be used. For members whose names have been obfuscated, Scope() offers the only means of referencing them.
This function may be used as a value, or as an l-value (on the left hand side of an assignment). This function is used to reference one specific occurrence of a variable in a module, from another module.
If the final result is Invalid, this function looks for the presence of backslash (\) characters in the second parameter and parses the result.
Example:
Scope(\Code, “TagName”);
Returns a reference to the given tag object, found within the current module.