Page 1 of 1

compiler

Posted: Sun Jun 25, 2006 9:43 pm
by Dwight
I get a complier error with Firstbas and et I see nothing wrong with the programming. The error I get is error 447: syntax error.
The error arrives at the section in bold. Any help would be great.

PRINT #1, , , , "ABS BRAKES"
PRINT #1, ""


INPUT "Enter Name: ", Name$ 'Read entries from keyboard.
INPUT "Enter Date: ", Dat$
INPUT "Enter Location: ", Location$
PRINT #1, Name$
PRINT #1, Dat$
PRINT #1, Location$

PRINT #1,

Posted: Tue Jun 27, 2006 1:33 am
by Guest
Hi, Dwight. I don't have FastBasic, so, I entered your code in QuickBASIC 4.5. It ran fine in QuickBASIC, and then I compiled it, and it ran fine compiled. No errors reported at any time.

Posted: Wed Jun 28, 2006 1:18 am
by buff1
I'd say if it is in fact the code line in bold, there are 2 possibilities.

1) NAME is a reserved word in which case change it to nam$ etc.

2) single quote is not valid for a comment

Since I don't have first basic, can't get any closer than that.
I would tend to lean toward #1 though.

Posted: Wed Jun 28, 2006 1:26 am
by buff1
#1 above is the culprit. I downloaded firstbasic and tried a similar line using
input "enter name ",name$
when i tried to run it , got syntax error -- so changed it to nam$ and it ran fine.