Ok, to answer these questions... I'm gonna need a pair of tweezers, a bucket, 3 dogs (preferably black) and some Orange Soda. Bring all this to the toilets behind the fridge and we can get to work...
... Ok, now that's done...
1) I am not sure if there is an upper limit, you are ussually anly limited by your imagination in programs like DarkBASIC (excluding the bugs etc of course). Best off to seek advise from one of the Moderators.
2)Yes there is a way, but you have to do it manually... Here's something i just whipped up...
number = 100000000
string_number$ = Str$(number)
m = 0
For a = 3 To 30 Step 3
If a >= Len(string_number$) - 2 Then Exit
string_number$ = Left$(string_number$,(Len(string_number$)-(a + m))) + "," + Right$(string_number$,(a + m))
Inc m
Next a
Print string_number$
And to use the same example with array's, (commented) use:
`This just sets up the array
Dim numbers(5)
numbers(1) = 1000
numbers(2) = 32000000
numbers(3) = 560000
numbers(4) = 12034000
numbers(5) = 0
`This a lop that goes for as long as the array has values
For b = 1 To 5
`This returns the string value of the number
string_number$ = Str$(numbers(b))
`This just resets the value of m to 0
m = 0
`This loop starts at 3 cos thats where you want the first comma and goes to 30 cos that was a number i chose
`The Step command makes the loop inc by 3 each time (putting a comma after every 3rd value)
For a = 3 To 30 Step 3
`Thsi checks to see if the comma will be placed b4 numbers exist (remove this line to see what i mean)
If a >= Len(string_number$) - 2 Then Exit
`Ok, this is a string parser.
`This gets the furthest "a" number of charaters on the right,
`Then the furthest "a" number of characters on the left and puts a comma inbetween them and joins it all up again.
string_number$ = Left$(string_number$,(Len(string_number$)-(a + m))) + "," + Right$(string_number$,(a + m))
`This increments m each loop, m represents the number of commas (that is why we start with m = 0)
Inc m
Next a
`This just prints the string to the screen
Print string_number$
Next b
Hope I Helped...
Knowladge Belongs To The People...