EXECUTES THE PROGRAM FROM LABEL L WHEN THE SYSTEM OBJECT NUMBER N HAS "CHANGED"
ACTION
The command ON_CHANGE N,L assigns a label (which must be defined in the program) from which the program will run every time the user changes something in the system object designated by the number N.
The system object must be one of the following types: MEMO, EDIT, COMBO, TRACK_BAR, SCROLL_BAR.
Remark : for a COMBO, the event corresponds to a change in its edition box: a COMBO is like an EDIT.
SYNTAX:
ON_CHANGE N,L
USE ERROR EXAMPLE
rem declare a label
label changed
rem a MEMO is created
memo 1
rem every time MEMO changes, execute from label "changed"
on_change 1,changed
end: rem main program is finished
changed:
beep: rem treatment of event = beep
return
ON_CHANGE
ON_CHANGE N,L
SEE ALSO
MEMO
EDIT
COMBO
TRACK_BAR
SCROLL_BAR
ON_CLICK