Quote:
Originally Posted by idrougge
I think the ceiling function is accomplished using QWrap().
|
No, QWrap(in,min,max) does:
IF in => max THEN in=min
As in :
Code:
While NOT(JoyB(0))
a=QWrap (a+1,1,20)
Print a," "
VWait 25
Wend
End
Will output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 2 3 4 5 ...
Furthermore, the difference in-max is added to min, if in exceeds max:
Code:
NPrint QWrap(35,1,20)
MouseWait
> 16