SetModuleText

(Engine-Level Function)

Description: Sets the module's .SRC file information.
Warning: This statement should be used by advanced users only since irrevocable alteration of your application may occur.
Returns: Nothing
Usage: Script Only.
Function Groups: Compilation and On-Line Modifications, Advanced Module
Related to: AdjustCode | GetModuleText | GetOneParmText | GetParmText | GetStateText | GetTransitText | GetVariableText | SetOneParmText | SetParmText | SetStateText | SetTransitText | SetVariableText | TextOffset | TextSize
Format: SetModuleText(Module, Mode, Value)
Parameters:  
Module
Required. Any expression for the module or object value.
Mode
Required. Any numeric expression for the value to set

Mode

Value to set

0

.SRC file name
Mode 0 cannot be used to make a module have a .SRC file name in a different directory than where the module presently resides.

1

Character offset to beginning of module definition

2

Size of module definition in characters

3

Character offset to first parameter declaration

4

Character offset to first variable declaration

5

Character offset to first state

6

Character offset to first child module definition

7

Character offset to beginning of variable declaration block

8

Size of variable declaration block in characters

9

Character offset to beginning of parameter declaration block

10

Size of parameter declaration block in characters

11

Full path and file name of .SRC file

Value
Required. Any expression for the value the module information specified by Mode will be set to.