EXECUTES THE PROGRAM FROM LABEL L WHEN THE SYSTEM OBJECT NUMBER N (FORM OR TAB) IS SHOWN
ACTION
The command ON_SHOW N,L assigns a label (which must be defined in the program) from which the program will run when the user shows the system object designated by the number N.
The system object must of the type FORM or TAB.
SYNTAX:
ON_SHOW N,L
USE ERROR EXAMPLE
label show,click
dim k%
k%=0
button 1:width 1,200:top 1,20:left 1,20:caption 1, "Click to hide this FORM"
on_show 0, show
on_click 1, click
end
show:
k%=k%+1
caption 0, "number of SHOWs: "+str$(k%)
return
click:
hide 0
wait 1000
show 0
return
ON_SHOW
ON_SHOW N,L
SEE ALSO
FORM