END

END

ENDS THE MAIN PROGRAM

  • Type: Command
  • Parameter: 0
  • Group: Reference

ACTION

The command END stops the running of the main program. The program remains active and trea the events.

It is not adviced to place END in a subroutine or in an event treatment procedure.

SYNTAX: END

USE

  • The command END is used to stop the main program, but to continue to respond to the program events.

ERROR

  • None.

EXAMPLE

label clicked

rem create a button

button 1:caption 1,"Click on me"

rem define an event associated to the button

on_click 1,clicked

rem end of main program, wait for event

end

clicked:

caption 1,"Hello !"

return

SEE ALSO

STOP

TERMINATE