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)
|