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

 -=> Quoting Ronald Schlegel to Sid Lee <=-
 RS> Tried that. Just one problem I encountered. It READs the same variable
 RS> over & over.
 RS> Ie:
 RS> 
 RS> READ Temp$
 RS> 
 RS> IF ERR =4 THEN
 RS> If I execute the above READ statement 5 times, here is what will
 RS> return:  Run Jog Walk Run Run
 It's not clear to me why your code fragment doesn't work as you
 expect but the one shown below does work and may assist you in
 figuring out why yours does not work as you expect it to.
 _ _ _O_/_ _C_u_t_ _H_e_r_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      O \
 data "cat","rat","dog"
 on error resume next
 print:print "begin program"
 for i% = 1 to 10
   read temp$
   if err = 4 then
     restore
     read temp$
   end if
   print temp$
 next i%
 end
 _ _ _O_/_ _C_u_t_ _H_e_r_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      O \
 -- Regards --
    Sid Lee (FIDO - 1:134/122,  Internet - sidlee@agt.net)
 
--- Blue Wave/Max v2.12
---------------
* Origin: RASCAL BBS [Calgary, Alberta - (403)686-2550] (1:134/122)

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™.