Ok I have a bit of a problem with arrays which I would like to know if anyone can help with. The program needs to open a file depending on the "item number" the user enters, and at the moment it is a case statement something like this:
select item
case 1 : open to write "item1.txt" : endcase
case 2 : open to write "item2.txt" : endcase
etc.
case default : print "invalid selection" : goto wherever : endcase
endselect
At the moment there is only up to case 10 so it isn't a problem, but it may become something like case 100, then case 500 etc. so it really needs to use arrays. The problem is, how do you get it to do something like:
open to write "item(t).txt"
Or is it not possible? Or does it need to look like:
open to write "item" + t + ".txt"? :-s
Can anyone help?