<< Click to Display Table of Contents >> Navigation: 3. Script Language > IPC, InterKOM and Exit Code > InterKOM Technology |
MiniRobotLanguage (MRL)
SEC. Command
Set a Return code for use by the calling programm
Intention
This command will set the Return code for the Robot-Executable only.
The Return code is also known as Error Level.
You can call this command at any place in your script to set the Return code for the "Robot-Executable", that is the "MR01.exe".
This command will NOT set the Return code for compiled Scripts. Use the SRV.-Command for this. Even multiple times.
Only the last call will set the finally used return code.
Usage is simple:
' Set a Return Code of zero (0)
SEC.
' Set a Return Code of zero (0)
SEC.0
' Set a Return Code of 10005
: $$PRO=10005
SEC.$$PRO
' Add multiple results
SEC.($$PR1+$$PR2+$$PR3)
Syntax
SEC.[P1]
Parameter Explanation
P1 - (optional) NUM ,variable or formula in (..).
if omitted, default is 0. Will be the Return code of the compiled executable.
Example
' Set a Return Code of zero (0)
SEC.
' Set a Return Code of zero (0)
SEC.0
' Set a Return Code of 10005
: $$PRO=10005
SEC.$$PRO
Remarks
This command will only set the Return Value for the "MR01.exe".
To set the Error-Level of compiled Scripts (EXE-Mode) use the SRV.-command.
To end a script and set a Return-code for executables, use END.
Limitations:
-
See also:
• SRV. - Set Return Value (Executable)