mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-06 00:00:22 +00:00
6912727753
Help file snapshot as of 07/31/2022.
36 lines
967 B
Plaintext
36 lines
967 B
Plaintext
{{QBDLDATE:07-31-2022}}
|
|
{{QBDLTIME:23:39:48}}
|
|
{{DISPLAYTITLE:_SCREENEXISTS}}
|
|
The [[_SCREENEXISTS]] function returns true (-1) once a screen has been created.
|
|
|
|
|
|
{{PageSyntax}}
|
|
: {{Parameter|screenReady%%}} = [[_SCREENEXISTS]]
|
|
|
|
|
|
{{PageDescription}}
|
|
* Function returns true (-1) once a program screen is available to use or change.
|
|
* Can be used to avoid program errors because a screen was not ready for input or alterations.
|
|
** Use before [[_TITLE]], [[_SCREENMOVE]] and other functions that require the output window to have been created.
|
|
|
|
|
|
{{PageExamples}}
|
|
;Example:Waiting in a loop until the screen exists to add the title. The [[_LIMIT]] prevents the loop from using all CPU time while waiting.
|
|
{{CodeStart}}
|
|
{{Cl|SCREEN}} 12
|
|
{{Cl|DO}}: {{Cl|_LIMIT}} 10: {{Cl|LOOP}} {{Cl|UNTIL}} {{Cl|_SCREENEXISTS}}
|
|
{{Cl|_TITLE}} "My Title"
|
|
{{CodeEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[_FULLSCREEN]]
|
|
* [[_SCREENIMAGE]]
|
|
* [[$CONSOLE]]
|
|
* [[$RESIZE]]
|
|
|
|
|
|
{{PageNavigation}}
|
|
|
|
[[Category:Final]]
|