Table of Contents

ugBASIC User Manual

SCREEN PAGE

SYNTAX

   = SCREEN PAGE

PURPOSE

The semantics of this keyword is different, depending on whether double buffering is enabled or not. If double buffering is enabled, the SCREEN PAGE function allows to know which page the program is on. There are two pages, page 0 (PAGE 0 or PAGE A) and page 1 (PAGE 1 or PAGE B). When you draw on page 0, page 1 is visible, and vice versa.

On the other hand, if doube buffering is not enabled, this function will return the actual screen page in use, as set by SCREEN PAGE command.

EXAMPLE

  IF SCREEN PAGE = PAGE 0 THEN
     PRINT "first page"
  ENDIF

ABBREVIATION

 ScPg

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY