Description: This function returns information about a module's document file.
Warning: For use by advanced programmers only. Effective use of this function requires a thorough understanding of VTS programming.
Returns: Varies
Usage: Script or Steady State
Format: GetModuleText(Module, Info)
Parameters: Module { Module } { required } { no default }
Any expression for the module.
Info { numeric } { required } { no default }
Any numeric expression giving the information to return, as shown in the following table:
|
Info |
Information to return |
|
0 |
File name which defines Module |
|
1 |
Character offset to beginning of Module |
|
2 |
Length of Module |
|
3 |
Character offset to beginning of parameter definitions |
|
4 |
Character offset to beginning of variable definitions |
|
5 |
Character offset to beginning of state definitions |
|
6 |
Character offset to beginning of child module definitions |
|
7 |
Character offset to first variable definition |
|
8 |
Length of variable definitions |
|
9 |
Character offset to first parameter definition |
|
10 |
Length of parameter definitions |
Comments: This function is used when automatically modifying modules.
See Also:
AdjustCode | GetOneParmText | GetParmText | GetStateText | GetTransitText | GetVariableText | SetModuleText | SetOneParmText | SetParmText | SetStateText | SetTransitText | SetVariableText | TextOffset | TextSize