1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 15:35:53 +00:00
QB64-PE/internal/help/_SHELLHIDE.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

36 lines
1.1 KiB
Plaintext

The '''_SHELLHIDE''' function hides the console window and returns any [[INTEGER]] code sent by [[END]] or [[SYSTEM]] when a program exits.
{{PageSyntax}}
::: return_code = _SHELLHIDE(''command$'')
{{Parameters}}
* The literal or variable [[STRING]] ''command'' parameter can be any [[DOS]] command line or call to another program.
''Usage:''
* QB64 can now return codes sent by program modules when a specified code is added after [[END]] code% or [[SYSTEM]] code%.
* The code can verify that a previous SHELL command was executed.
''Example:'' Shelling to another QB64 program will return the exit code when one is set in the program that is run.
{{CodeStart}} '' ''
returncode% = {{Cl|_SHELLHIDE}}(&quot;DesktopSize&quot;) 'replace call with your program EXE
{{Cl|PRINT}} returncode%
{{Cl|END}} '' ''
{{CodeEnd}}
: ''Explanation:'' To set a program exit code use an [[INTEGER]] parameter value after [[END]] or [[SYSTEM]] in the called program.
''See also:''
* [[SHELL (function)]]
* [[SHELL]], [[_HIDE]]
* [[_CONSOLE]], [[$CONSOLE]]
* [[SYSTEM]], [[END]]
{{PageNavigation}}