SWITCHTO

 

Syntax:

 

       Then: SWITCHTO name

 

"name" is the name of screen to switch to.

 

Version Ref:  4.5

 

Description:

Switch to a different screen, without returning to the original screen upon ending processing (which is the default operation of the SCREEN command which also switches screens). Normally, when INPUT processing ends you are returned to the SCREEN you were on when processing started. The SWITCHTO displays a specific screen, and sets it to be the screen to be returned to, instead of the original screen.

 

Examples:

 

@keyP    If:
       Then: switchto "pay";end

 

Allow only certain users access to screen 9.

 

@key9    If: "*root*kenb*ronk*lauraw*" co ("*" & @id & "*")
       Then: switchto "9" ; end
         If:
       Then: errorbox "You are not authorized for screen 9." ; end