Posted: 06:21am 04 Mar 2022 |
|
|
|
RESTORE restores the data pointer to a line number if you are using line numbers (something to avoid) or a label whether you are using line numbers or not.
'data test READ txt1$, txt2$ PRINT Txt1$,txt2$ RESTORE READ txt1$, txt2$ PRINT Txt1$,txt2$ RESTORE firstdata READ txt1$, txt2$ PRINT Txt1$,txt2$ RESTORE anotherspot READ txt1$, txt2$ PRINT Txt1$,txt2$ RESTORE firstdata READ txt1$, txt2$ PRINT Txt1$,txt2$
firstdata: DATA fred, barney DATA wilma, betty
anotherspot: DATA dino, pebbles
Provided you use labels to mark different DATA sections, you should have no trouble finding the data you are looking for, no matter what a rouge include does to the data pointer.
Jim |