first, you can only count in whole steps, so you don`t need a float for the count limit, use
for x=0 to ObjectTotal
instead, DB will not increment a for/next in fractional quantitys anyway, so it`s just a waste of time and memory
second, storeing numbers inside strings is slow and not needed, you can just open your save file (making sure it doesn`t already exist), and then write your variables directly to it: eg
open to write 1,"saved_positions.dat"
write float 1,variable#
third, what you need is a way of numbering your variables, for this you can use arrays and either just add numbers to the stack as you make em, or queue them or just make a large enough array and then save that with the save array command, an array is like a stack of boxes that can all hold a different number, they are all identical exept that the name varies by a number at the end, so to make an array that holds eleven numbers you do
dim number(10)
the 10 isn`t a typo, computers make arrays from element zero, so you now have eleven boxes named
number(0)
number(1)
number(2)
number(3)
number(4)
number(5)
number(6)
number(7)
number(8)
number(9)
number(10)
each box can hold one number, so for example
number(0)=55
number(1)=123
number(2)=1
number(3)=99999999
number(4)=365
number(5)=3
number(6)=12
number(7)=11
number(8)=1234567890
number(9)=666
number(10)=999
if you want the number 365 back then do
print number(4)
and the contents of box 4 (365) are printed, the number after the variable name in the brackets is called the index, and this is where arrays can get powerful, it is possible to use variables as the index, so to print out all eleven numbers you can do
for Index=0 to 10
print number(Index)
next Index
and the variable points to the numbers adress, you could think of it as row of houses on Number Street, house number 0 has one number living there, same for house number 1, 2, 3 etc, you can pick what number you call up either by just putting in a constant, or by using a variable.
fourth, the way you are trying to do it is possible, but once you have added a number to a string then you will still have the problem of trying to retrieve the number afterwards, easy enough if all the numbers have the same number of digits, a lot harder if they are fractional or range widely, it is better to stick to numbers, besides, converting numbers to strings and back again is slow and will markedly slow the code when you have a large amount of them to convert.
Mentor.
PC1:XP, P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro, 6 way sound.
PC2: Linux, AMD 2ghz, 512mb ram, Nvidia GeForce4mx, 16 bit SB.
PC3: XP, laptop, intel 2.6ghz celeron, ATI 9000igp, 256mb