there are no
DBP alike
array insert at bottom command exists, so i am use the
dim command instead. but in case if it is multi-dimensional array some strange things are happens.
try this code:
for x = 1 to 10
dim test[x, 3]
test[x, 1] = 111
test[x, 2] = 222
test[x, 3] = 333
next x
f = openToWrite(\"output.txt\", 0)
for x = 1 to 10
for y = 1 to 3
writeLine(f, \"test[\"+str(x)+\",\"+str(y)+\"] = \"+str(test[x, y]))
next y
next x
closeFile(f)
hereupon look in output.txt. not expected, didn\'t?
meanwhile all works finely, if to try this:
for y = 1 to 10
dim test[3, y]
test[1, y] = 111
test[2, y] = 222
test[3, y] = 333
next y
f = openToWrite(\"output.txt\", 0)
for x = 1 to 3
for y = 1 to 10
writeLine(f, \"test[\"+str(x)+\",\"+str(y)+\"] = \"+str(test[x, y]))
next y
next x
closeFile(f)
but this method does not correspond to the paradigm of what is given in Help Files\'s lottery$[] example.