|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Variable Definitions and Operations > MOD. - Modules > Modules |
MiniRobotLanguage (MRL)
MOD.Number from Name
Get the Number of a Module, by its Name
Intention
This command will return the number of a module, if it has one, from its name in P1.
Syntax
MOD.Number from Name|P1[|P2]
Parameter Explanation
P1 - Is the Name of the Module of which we want the Number.
P2 - (optional) Is a return Variable, if omitted the result will be on TOS.

Speed Considerations.
Example
'***********************************
' MOD.Get Number-Sample
'***********************************
MOD.New|Layer 1
$$TXT=Bin in L1
MOD.Number from Name|Layer 1|$$NUM
PRT.The number is "$$NUM"
MOD.Number from Name|Main|$$NUM
PRT.The number is "$$NUM"
DMP.Sp
MBX.!
ENR.

Remarks
-
Limitations:
-
See also:
•