LocalScope

Description: Equivalent to Scope(Obj, Name, TRUE).
LocalScope is a useful shortcut where the second parameter is not a constant string.
Returns: Reference
Usage: Script or steady state.
Function Groups: Basic Module
Related to: Variable | ScopeLocal | Scope
Format: LocalScope(Obj, Member)
Parameters:  
Object
Required. Any expression for the object value where Member may be found.
Member
Required. Any text expression for the member name.
Comments:

This function is the same as the '.' operator, when the '.' operator is used between two operands. (Object.Member).

As an example, the LocalScope() function is useful for referencing a tag object where its name contains special characters or spaces:

TagObj = LocalScope(\VTSDB, "R&R Level")

Example:

TagName = "MyTag";
TagObj = LocalScope(\VTSDB, TagName);

Returns a reference to the given tag object, found within the current module.

This is the equivalent to:

\VTSDB.MyTag