forked from Galleondragon/qb64
-
Notifications
You must be signed in to change notification settings - Fork 24
_SHELLHIDE
Cory Smith edited this page Sep 1, 2022
·
4 revisions
The _SHELLHIDE function hides the console window and returns any INTEGER code sent when a program exits.
returnCode% = _SHELLHIDE(externalCommand$)
- The literal or variable STRING externalCommand$ parameter can be any external command or call to another program.
- A QB64 program can return codes specified after END or SYSTEM calls.
- The returnCode% is usually 0 when the external program ends with no errors.
Shelling to another QB64 program will return the exit code when one is set in the program that is run.
returncode% = _SHELLHIDE("DesktopSize") 'replace call with your program EXE
PRINT returncode%
END
Explanation: To set a program exit code use an INTEGER parameter value after END or SYSTEM in the called program.