20. Writing 4GL Statements : Flow-Control Statements : Using the Exit Statement
 
Share this page                  
Using the Exit Statement
The exit statement closes an entire application and returns control to the level from which the user entered the application. For example:
'Quit' = 
begin 
  exit; 
end
At least one menu operation Quit or Exit must be paired with an exit statement somewhere in the application as a way of returning to the operating system when the user has finished. A return statement from the first frame called has the same effect.