Modules

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Variable Definitions and Operations > MOD. - Modules >

Modules

MOD.Number from Name

Previous Top Next


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.

 

 

clip0996

   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.

 

clip0995

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: