<< Click to Display Table of Contents >> Navigation: 3. Script Language > IPC, InterKOM and Exit Code > InterKOM Technology |
MiniRobotLanguage (MRL)
SRV. Command
Set a Return Error-Level Value in EXE-Mode
Intention
This command will set the Return code for compiled executable scripts. The Return code is also known as Error Level. You can call this command at any place in your script.
If called in "Exemode", SRV. will set a return code for a compiled executable. If not encapsuled in an executable, SRV. will set the Returncode like SEC. only for the "MR01.exe". If given no Parameter, a Return code of zero is used.
Even multiple times. However only the last call will set the finally used return code.
Usage is simple:
' Set a Return Code of zero (0)
SRV.
' Set a Return Code of zero (0)
SRV.0
' Set a Return Code of 10005
: $$PRO=10005
SRV.$$PRO
' Add multiple results
SRV.($$PR1+$$PR2+$$PR3)
SRV. does NOT set a Return code for the "MR01.exe", use SEC. for this.
Syntax
SRV.[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)
SRV.
' Set a Return Code of zero (0)
SRV.0
' Set a Return Code of 10005
: $$PRO=10005
SRV.$$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: