NextScreenMode()

Syntax

Result = NextScreenMode()
Description
This function should be called after ExamineScreenModes(). It will go step-by-step into the screen modes list. The current screen mode information can be retieved with the following functions: ScreenModeWidth(), ScreenModeHeight(), ScreenModeDepth() and ScreenModeRefreshRate(). If the 'Result' is 0, the screen mode listing is finished.

Example:
  InitSprite()

  If ExamineScreenModes()
    While NextScreenMode()
      Debug Str(ScreenModeWidth())+"x"+Str(ScreenModeHeight())+"x"+Str(ScreenModeDepth())+"@"+Str(ScreenModeRefreshRate())+"Hz"
    Wend
  EndIf

Supported OS

All

<- LoadSprite() - Sprite Index - OpenScreen() ->