DATA statements MUST appear in the main program.by Solitaire (Login Solitaire1)
From "QuickBasic - The Complete Reference"
"You can place DATA statements anywhere in the main module of your program."
"DATA statements cannot appear in subprograms."
DATA statements can be placed anywhere in the main program, even before the first READ statement. They can be broken up and scattered throughout the main program, but they are treated as one group of statements, in sequential order.
An internal pointer moves from one statement to the next until it comes to the end. Attempting to read past the last statement will result in an "Out of Data" error. To restart and move the pointer back to the beginning, use the RESTORE keyword. If you want to start from a particular DATA statement, you may use a label and RESTORE to that point.
FOR x = 1 TO 5
PRINT : PRINT
FOR x = 1 TO 5
|Response Title||Author and Date|
|thats a bummer....||on Jan 17|
|* I suggest you place the data into text files and load them into memory as needed.||Solitaire on Jan 17|
|i would but...||on Jan 17|
|Files would work better than DATA. DATA consumes valuable space.||on Jan 17|
|i know DATA will take up space.||on Jan 17|
|i forgot to add..||on Jan 17|
|Let me save you a lot of hell...||on Jan 17|
|few QB64 questions||on Jan 17|
|Yes to both. You can also continue to program in the QB IDE.||on Jan 17|
|32 bit is good. Try it and see. It should work!||on Jan 17|
|*You could put all the files in a folder and ZIP them up to send to people.||Solitaire on Jan 17|
|My hunch is, Solitaire, (and an alternative for Mike) is that since it is a game...||on Jan 17|
|exactly pete||on Jan 17|
|You could use ASCII encryption||on Jan 17|
|If you use that, just be sure you don't have a CHR$(26) in your data...||on Jan 17|
|I normally only change letter\number codes from 48 up. I leave lowers alone.||on Jan 17|