I'm a newbie to Free Basic. Converting QB 4.5
In QB I use:
Out$ = "LPT1:":
OPEN Out$ FOR OUTPUT AS #1
Free Basic compiles it, but I get unhandled error #53 (file not found)
I then tried
Open Lpt "LPT1:EMU=TTY" For Output As #1
That earns me a "Expected operator in equation on current line" Error And I copied that from the manual :(
I even tried
Code: Select all
OPEN LPT "LPT:printer_name,TITLE=title" As #1
Then the error is "Expected CASE on current line"
any suggestions?
Norbert
Printing to LPT1: on Win 7
Re: Printing to LPT1: on Win 7
I tried
LPRINT "Testing!"
and the printer worked
LPRINT "Testing!"
and the printer worked
Re: Printing to LPT1: on Win 7
The latter two commands do compile fine for me on FBC 1.05 x64. Do you use the latest compiler? Do you use any language mode other than "fb"?
Is that the whole code? I guess not, so are you sure that the error is caused by this line and not something else?
Is that the whole code? I guess not, so are you sure that the error is caused by this line and not something else?