QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The _SHELLHIDE function hides the console window and returns any INTEGER code sent when a program exits.

Syntax

returnCode% = _SHELLHIDE(externalCommand$)

Parameter(s)

Description

Example(s)

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.

See Also