IGNORES THE EVENT HANDLER "CLOSE" WHEN THE SYSTEM OBJECT NUMBER N (FORM) IS CLOSED
ACTION
The command OFF_CLOSE N ignores the event "close" on the system object designated by the number N: the event subprogram is not executed when the closure of the FORM is activated.
As a consequence, the FORM is closed without the running of the event subprogram.
Remark 1: the system object must be of the type FORM.
Remark 2: the event subprogram is defined by the command ON_CLOSE N,L which assigns the label L as the starting point of the event subprogram.
SYNTAX:
OFF_CLOSE N
USE ERROR EXAMPLE
label close
print "clic on the cross icon"
on_close 0,close
wait 1000
off_close 0
end
close:
caption 0,"wait for 3 secondes"
wait 3000
return
OFF_CLOSE
OFF_CLOSE N
SEE ALSO
ON_CLOSE