|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Variable Definitions and Operations > MOD. - Modules > Modules |
MiniRobotLanguage (MRL)
MOD.Local
Enter the specified Module and reset all contained Variables
Intention
This command will change the namespace to the specified module and make sure there are no variables defined in that namespace.
The module can be specified by name or by number.
Important:
This command will enter the namespace and delete all variables from that namespace.
This means you will enter a completely clean namespace.
MOD.Local|1
or
MOD.Local|Subroutines
If the module is specified by name and does not exist, you will get an error message.

Syntax
MOD.Local|P1
Parameter Explanation
P1 - (Text) Is the name for the Module or the number of the Module.
The name is internally Lower cased, therefore all Module-names are internally in lowercase, but you can write them as you wish.
Example
'***********************************
' MOD.Local-Sample
'***********************************
$$VAA=In Main
PRT.$$VAA
' This will be created as Module 1
MOD.New|Left Side Module
$$VAA=In Module 1
PRT.$$VAA
MOD.New|Right Side Module
$$VAA=In Module 2
PRT.$$VAA
MOD.Local|Left Side Module
PRT.$$VAA
MOD.Local|Right Side Module
PRT.$$VAA
DMP.gv
MBX.Done
ENR.
Remarks
-
Limitations:
-
See also:
•