exit

Declaration

exit

Description

This function exits the program immediately. Use this function to implement a quit button in your pages.

If the user attempts quit by closing the window, selecting a menu item, etc., the test engine fires an on_project_can_exit event. If you respond true to this event, then the application quits.

If you plan to implement your own quit button, it would be best to call this routine yourself, then exit if true. See example below.

See Also

on_project_can_exit
system functions

Example

script on_project_can_exit is
  project_can_exit := ask ('Are you sure you want to quit?', True)
end

script quit is
  -- user-supplied script
  call ('on_project_can_exit')
if project_can_exit then exit end
end