ScopeLocal
Deprecated. Do not use in new code.
Description: | Exists only for backward compatibility. Use Scope(Module, VarName, TRUE) for all new code. Performs a scope resolution only if it occurs in the requested context. Returns a reference to the requested member within a module or other object. |
Returns: | Reference |
Usage: | Steady State only. |
Function Groups: | Basic Module |
Related to: | Scope | LocalScope |
Format: | ScopeLocal(Object, Member) |
Parameters: |
Object |
Required. Any expression for the object value (module) where Member may be found. |
Member |
Required. 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 differs from the Scope function only in that it is restricted to the requested module context. It will not search through the scope tree if the Member name is not found in the designated object. If the final result is Invalid, this function looks for the presence of backslash (\) characters in the second parameter and parses the result. |
Example:
ScopeLocal(Code, "TagName");
Returns a reference to the given tag object, found within the current module.