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 compi
ZJ> error 425 "String variable Expected". If I comment the line "Line Inp
ZJ> FileHandle1, OneLine" and use the line that's currently commented the
ZJ> compiler compiles it just fine.
I think you still need to put the # sign before FileHandle1, ex:
Line Input #FileHandle1,Oneline
I use variables for file #'s as well with input and line input and have
always done that, but probably ran into the same problem you did long
ago and tried the # and it worked so stuck with it (when I am in a
hurry I tend not to overanalyze why something didn't work, just happy
it did work). Eric
--- QM v1.00
---------------
* Origin: Creekside Manor (805) 484-8016 CdCom Support BBS (1:206/2512.0)
|