$ESCAPECHARS ON
$TYPECHECK ON
$INCLUDE "RAPIDQ.INC"
DECLARE FUNCTION DecRecursivly (iNumber AS LONG) AS LONG
DECLARE SUB DecRec
DECLARE SUB OnTimer_tmr
DEFINT iLoop
iLoop = 500
DIM tmr AS QTIMER
tmr.Interval = 50
tmr.Enabled = True
tmr.OnTimer = OnTimer_tmr
DecRecursivly (iLoop)
Erreur:
DEFSTR sExit
INPUT "\n\n CR to QUIT \n\n", sExit
Application.Terminate
END
FUNCTION DecRecursivly (iNumber AS LONG) AS LONG
DEC iNumber
iLoop = iNumber
DOEVENTS
IF iNumber > 0 THEN DecRecursivly (iNumber)
END FUNCTION
SUB DecRec
DEC iLoop
DOEVENTS
IF iLoop > 0 THEN DecRec
END SUB
SUB OnTimer_tmr
PRINT iLoop
END SUB
|