OPTIONS "C_CALL LABELCHECK"
NUMERIC DIGITS 10
LIBRARY rexxgui
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
FINALLY
guidestroywindow()
END
RETURN
wm_click_startloop:
createobject("ChildAbort.rex",,, "My title")
guisignal = ""
count = 0
DO FOREVER
IF count // 100 == 0 THEN childabort~showmessage(count "loops have passed.")
count = count + 1
guigetmsg("CLEAR")
IF guisignal == "ABORT" THEN LEAVE
END
DROP childabort
RETURN |