_SHELLHIDE - mkilgore/QB64pe GitHub Wiki

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

Syntax

returnCode% = _SHELLHIDE(externalCommand$)

Parameters

  • The literal or variable STRING externalCommand$ parameter can be any external command or call to another program.

Description

  • 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.

Examples

Example: Shelling to another QB64 program will return the exit code when one is set in the program that is run.

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


Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
⚠️ **GitHub.com Fallback** ⚠️