05-22-2004, 06:30 AM
Hi all - I've recently come back to QBasic after a year or two of doing other things (kinda got annoyed with how it ran when we first got XP.... or was it Win2000? Well anyways). I'm looking at arrays, and wondering if there is a way to declare them in one line?
Right now I'm doing
Now, I think there should be an easier way to do this that I'm probably just missing. I know in things like PHP or Java you can do
Any advice for how I'd do this in QBasic? (I'm hoping it's just a simple syntax I don't know). Thanks in advance.
Right now I'm doing
Code:
DIM Array(3)
Array(1) = "Something"
Array(2) = "Something Else"
Array(3) = "Something Completely Different"
Code:
Array = ("Something", "Something Else", "Something Completely Different")
Any advice for how I'd do this in QBasic? (I'm hoping it's just a simple syntax I don't know). Thanks in advance.
nce upon a time there crept through the looking-glass a curious child whose manners were not very good. Perhaps a little clever, yes, but given to spying, and sneaking, and going through dead men's pockets... [cloudmakers]