Self

Description: Returns the object value of the current module.
Returns: Object Value
Function Groups: Basic Module
Usage: Script or steady state.
Related to: NParm | Parameter | PType | ResetParm | Return | SystemSelf
Format: Self( )
Parameters:

None

Comments: This is the only way to get a module's object value, and is commonly used in functions such as NParm, Parameter, ResetParm, and Return.

Example:

modPtr = FindVariable("MyChildMod", Self(), 0, 1);

This function searches for the module called MyChildMod starting at the current module and proceeding through its ancestral tree.