|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Variable Definitions and Operations > MOD. - Modules > Modules |
MiniRobotLanguage (MRL)
MOD.Delete
Delete a Module together with all its Variables
Intention
Using this command you can delete a module and all its variables.
After doing so the number that the module had before will be free again to be used with MOD.New.
If the Module that was deleted is the current Module, the current Module will be switched to "Main" (0).
Otherwise deleting a Module will not lead to a Module-Switch.
Syntax
MOD.Delete|P1
Parameter Explanation
P1 - Is the name or number of the Module to delete.
Example
'***********************************
' MOD.Delete-Sample
'***********************************
$$VAA=In Main
PRT.$$VAA
MOD.New|Left
$$VAA=In Left
$$TXT=12345
MOD.Delete|Left
MOD.Main
GSB.Test
DMP.gv
MBX.!
ENR.
'-----------------------------------------------------------
:Test
MOD.Get Last Name|$$THI
PRT.We came from: $$THI
MOD.Get Name|$$CUR
PRT.We are here: $$CUR
RET.
'-----------------------------------------------------------

Remarks
-
Limitations:
-
See also:
•