This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Set the process return code
Syntax
lret = APP_SetReturnCode (ReturnCode)
Returns
Numeric
Parameters
Name |
Type |
Optional |
Meaning |
ReturnCode |
Numeric |
No |
A positive number in the range 0 to 2147483647 (2^31 -1) |
Remarks
This is particularly useful when thinBasic application needs to return a code to the operating system shell and pass it to the next or calling process.
Restrictions
Attention:
in case a thinBasic script contains a TBMain (or equivalent) main function, APP_SetReturnCode will have no effect.
In this case value returned by TBMain will be considered as application return code.
See also
Examples