With _INTEGER64 the max digits is 18?
DIM i AS _INTEGER64
DIM Digits AS INTEGER
Digits = 18
FOR i = 0 TO 10 ^ Digits - 1
numberstring$ = RIGHT$(STRING$(Digits, "0") + _TRIM$(STR$(i)), Digits)
PRINT numberstring$
IF i MOD 20 = 0 THEN SLEEP
NEXT i
Hey that's a neat trick i MOD 20 = 0 !