EXECUTES THE PROGRAM FROM LABEL L BEFORE THE SYSTEM OBJECT NUMBER N (FORM) IS CLOSED
ACTION
The command ON_CLOSE N,L assigns a label (which must be defined in the program) from which the program will run when the user closes the system object designated by the number N.
The system object must of the type FORM.
SYNTAX:
ON_CLOSE N,L
USE ERROR EXAMPLE
label close
print "clic on the cross icon"
on_close 0,close
end
close:
caption 0,"wait for 3 secondes"
wait 3000
return
ON_CLOSE
ON_CLOSE N,L
SEE ALSO
FORM