A moduleís data area is private to the module. A restore statement within one module does not effect the read pointer in other modules. The possibility (and opportunity) exists to have data areas in each of several modules concurrently, each in the process of being read.
10 data "A ", "ROSE ", "IS " 20 read a$, b$, c$ 30 print a$; b$; c$; 40 restore 50 read d$, e$, f$ 60 print d$; e$; f$; 70 restore 80 read g$, h$ 90 print g$; h$produces
A ROSE IS A ROSE IS A ROSEThe strings "A ", "ROSE ", and "IS " are read in at line 20. The restore statement in line 40 resets the read pointer to the beginning so that the values that are read in line 50 are again the strings "A ", "ROSE ", and "IS ". Similarly, the restore statement in line 70 allows "A " and "ROSE " to be re-read in line 80.
from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber