1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 07:41:21 +00:00
qb64/internal/help/_DONTWAIT.txt

42 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_DONTWAIT}}
2017-10-10 14:55:21 +00:00
[[_DONTWAIT]] is used with the [[SHELL]] statement in '''QB64''' to specify that the program shouldn't wait until the external command/program is finished (which it otherwise does by default).
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: [[SHELL]] [{{KW|_DONTWAIT}}] [{{Parameter|commandLine$}}]
{{PageDescription}}
2017-10-10 14:55:21 +00:00
*Runs the command/program specified in {{Parameter|commandline$}} and lets the calling program continue at the same time in its current screen format.
*Especially useful when CMD /C or START is used in a SHELL command line to run another program.
* '''QB64''' automatically uses CMD /C or COMMAND /C when using SHELL.
2021-02-11 11:41:53 +00:00
* '''QB64''' program screens will not get distorted or minimized like QBasic fullscreen modes would.
{{PageExamples}}
{{CodeStart}}
2019-04-15 01:15:33 +00:00
{{Cl|SHELL}} {{Cl|_DONTWAIT}} "notepad " + filename$
{{Cl|FOR...NEXT|FOR}} x = 1 {{Cl|TO}} 5
{{Cl|_LIMIT}} 1
{{Cl|PRINT}} x
{{Cl|NEXT}}
{{CodeEnd}}
(opens up notepad at the same time as counting to 5)
{{OutputStart}}
1
2
3
4
5
{{OutputEnd}}
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[SHELL]], [[_HIDE]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}