Modules

<< Click to Display Table of Contents >>

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

Modules

MOD.Force Declare

Previous Top Next


MiniRobotLanguage (MRL)

 

MOD.Force Declare

Change Safety Setting for using undeclared Modules

 

 

Intention

 

In larger projects it may be an additional safety to be forced that each new module has been declared before using, with the MOD.New command.

This command will just change the setting if the robot will force you to give modules a name before they can be used or not.

By default Modules can be used without a name, just using their number.

 

clip0973

If "Force Declare" is set to 1, you will get an error Message trying to enter an unnamed Module.

 

Syntax

 

 

MOD.Force Declare[|P1]

 

 

Parameter Explanation

 

P1 - (optional) Can be  "1" or "0". If this is "1" then you are forced to declare Modules using the MOD.New - Command.
                                  If omitted "0" is used as Parameter, which is the default state.

 

 

 

 

Example

 

'***********************************

' MOD.Force Declare-Sample

'***********************************

' This Script will bring up an Error-Message

MOD.Force Declare|1

MOD.Enter|1

ENR.

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: