TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ZACK JONES
from: JAMSHID KHOSHRANGI
date: 1995-10-19 09:41:00
subject: What`s Wrong with This?

ZJ>Howdy All!
ZJ>I'm just getting back into Basic programming and I've run
ZJ>into a problem.  Take a look at this code:
Glad to see you back in BASIC, Zack!
ZJ>dim OneLine as string
ZJ>dim FileHandle1 as Integer
ZJ>FileHandle1 = FreeFile
ZJ>Open "FD.LOG" for input as FileHandle1
ZJ>While not(EOF(FileHandle1))
ZJ>    Line Input FileHandle1, OneLine
ZJ>    'Line Input #1, OneLine
ZJ>Wend
ZJ>As written this won't compile.  When I try to compile it I get a compiler
ZJ>error 425 "String variable Expected".
        LINE INPUT #Filehandle1, OneLine
Have fun with that....
The # is not optional in this particular instance, that's all.
Cheers,
Jamshid
--- Maximus/2 2.01wb
---------------
* Origin: Sound Stage BBS - Live Via Satellite - (604)944-6476 (1:153/7070)

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