_SCREENEXISTS

From QB64 Phoenix Edition Wiki
Revision as of 15:32, 19 April 2022 by SMcNeill (talk | contribs) (Created page with "{{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 h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The _SCREENEXISTS function returns true (-1) once a screen has been created.


Syntax

screenReady%% = _SCREENEXISTS


Description

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


Examples

Example: The loop waits until the screen exists to add the title.

  
SCREEN 12
DO: LOOP UNTIL _SCREENEXISTS
_TITLE "My Title"


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link