Lists in QBASIC
Lists in QBASIC
Is there any way of making a list in QBASIC that I can add to, modify or delete. Kind of like the ArrayList in JAVA or the LIST object in VB. Or would I have to hard code the damn thing.
SYNTAX ERROR ...
Code: Select all
DIM MyArray[3]
For any grievances posted above, I blame whoever is in charge . . .
Re: Lists in QBASIC
You have to hard code it. There are no objects in QBasic as there are in VB. Even MSGBOX must be hard coded.supernova wrote:Or would I have to hard code the damn thing.
We are using "hard code" to mean "code it the hard way", I guess. "Hard code" usually refers to using internal constants rather than variable supplied by the user via INPUT or parameter files. If I code OPEN "MyFile.txt", that is "hard code". If I code
INPUT "File name"; F$: OPEN F$
That is not "hard code"
Mac