Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
memory/data errors
#5
Clear does NOT restore the DATA! If you have several DATA fields you can name them andv RESTORE the ones you need.

To name a DATA field use a line label:

MyData1:

DATA ,,,,,,,,,,
DATA ,,,,,,,,,,,
DATA ,,,,,,,,,,

When you READ the DATA you can restore that data field only:


RESTORE MyData

FOR i = 1 TO 20  'read 40 values using 2 variables
READ nam$, age%, address$
NEXT

I advise placing all DATA fields after the main program code has ended. That way, you don't accidentally go to the wrong DATA fields.
Get my QB demonstrator here: http://dl.dropbox.com/u/8440706/Q-Basics.zip
Reply


Messages In This Thread
memory/data errors - by tox_von - 04-19-2010, 06:21 PM
Re: memory/data errors - by Clippy - 04-19-2010, 10:32 PM
Re: memory/data errors - by tox_von - 04-23-2010, 05:56 PM
Re: memory/data errors - by kinem - 04-27-2010, 10:58 PM
Re: memory/data errors - by Clippy - 05-05-2010, 11:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)