Please use this Board for QBasic related requests ( file research, programming, etc.)
Moderators:Administrator, Global Moderator
-
Dwight
compiler
Post
by Dwight » Sun Jun 25, 2006 9:43 pm
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,
-
Guest
Post
by Guest » Tue Jun 27, 2006 1:33 am
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.
-
buff1
Post
by buff1 » Wed Jun 28, 2006 1:18 am
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.
-
buff1
Post
by buff1 » Wed Jun 28, 2006 1:26 am
#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.