TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ZACK JONES
from: WAYNE ZIMMERLE
date: 1995-10-19 22:27:00
subject: What`s Wrong with This?

ZJ>I'm just getting back into Basic programming and I've run into a problem.
ZJ>Take a look at this code:
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".  If I comment the line "Line Input
ZJ>FileHandle1, OneLine" and use the line that's currently commented the 
compil
ZJ>compiles it just fine.
Zack I put # in front of FileHandle1, OneLine and it worked.  I think the 
error relates to that. ---
 * SLMR 2.1a * 
--- InterEcho 1.11
---------------
* Origin: The DataStream (Node 1), Peoria, IL (1:232/30)

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