TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: SID LEE
from: RONALD SCHLEGEL
date: 1997-05-28 16:55:00
subject: READ/DATA

Sid,
 
SL> RS> How can I cause the program to "Restart" at the beginning of the
SL> DATA
SL> RESTORE [label:line number]
SL> part of the DATA. If you do not specify it resets to the beginning
SL> of the DATA ;-)
 
Tried that. Just one problem I encountered. It READs the same variable 
over & over.
Ie:
 
READ Temp$
 
 IF ERR =4 THEN
 RESTORE
 Read Temp$
 END IF
 
It RESTOREs to the first DATA word & "refuses" to go past that. 
Ie:
 
DATA Run, Jog, Walk
 
If I execute the above READ statement 5 times, here is what will return:
 
Run
Jog
Walk
Run
Run
 
It never moves to the next one.
 
-Ron
 
 * RM 1.3 03129 * Just think of death as the Ultimate Upload!
--- TriToss (tm) Professional 11.0 - #229
---------------
* Origin: * Dynasty BBS * The Home of Crazy Nights Software * (1:110/1065.0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.