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

32 lines
823 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_SCREENEXISTS}}
2017-10-10 14:55:21 +00:00
The [[_SCREENEXISTS]] function returns true (-1) once a screen has been created.
2016-03-18 11:36:04 +00:00
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: {{Parameter|screenReady%%}} = [[_SCREENEXISTS]]
2016-03-18 11:36:04 +00:00
{{PageDescription}}
2017-10-10 14:55:21 +00:00
* 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.
2016-03-18 11:36:04 +00:00
2017-10-10 14:55:21 +00:00
{{PageExamples}}
2021-04-25 22:40:25 +00:00
''Example:'' The loop busy-waits until the screen exists to add the title.
2016-03-18 11:36:04 +00:00
{{CodeStart}} '' ''
{{Cl|SCREEN}} 12
{{Cl|DO}}: {{Cl|LOOP}} {{Cl|UNTIL}} _{{Cl|SCREENEXISTS}}
2019-04-15 01:15:33 +00:00
{{Cl|_TITLE}} "My Title"
2016-03-18 11:36:04 +00:00
{{CodeEnd}}
{{PageSeeAlso}}
* [[_FULLSCREEN]]
* [[_SCREENIMAGE]]
* [[$CONSOLE]]
* [[$RESIZE]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}