EXECUTES THE PROGRAM FROM LABEL L WHEN THE SYSTEM OBJECT NUMBER N (FORM) IS ACTIVATED
ACTION
The command ON_ACTIVATE N,L assigns a label (which must be defined in the program) from which the program will run when the user activates the system object designated by the number N.
The system object must of the type FORM.
SYNTAX:
ON_ACTIVATE N,L
USE ERROR EXAMPLE
label active0,active1
dim k0%,k1%
k0%=0
k1%=0
height 0,200:width 0,300
alpha 10:top 10,20:left 10,20:caption 10, "Click on this FORM"
form 1:left 1,310:height 1,200:width 1,300
alpha 11:parent 11,1:top 11,20:left 11,20
on_activate 0,active0
on_activate 1,active1
end
active0:
k0%=k0%+1
caption 0, "activations: "+str$(k0%)+" : "+str$(NUMBER_ACTIVATE)
caption 10, ""
caption 11, "Click on this FORM"
return
active1:
k1%=k1%+1
caption 1, "activations: "+str$(k1%)+" : "+str$(NUMBER_ACTIVATE)
caption 10, "Cliquez sur ce FORM"
caption 11, ""
return
ON_ACTIVATE
ON_ACTIVATE N,L
SEE ALSO
FORM