|
Post by tk on Feb 6, 2003 4:56:42 GMT
i am new to qbasic.. and i kee getting a syntax error on 477 I was wondering if anyone can help me fix this.. thanx
code..
CLS
PRINT INPUT "Please type in your name? ", uname$ PRINT "Hello there "; uname$; " Good to see you" IF uname$ = tk THEN PRINT "Yooo long time no see bro =)"
END IF END
|
|
|
Post by stuart on Feb 6, 2003 7:18:15 GMT
The code you posted breaks on line 6 with error for "type mismatch". The reason reason is because you did not enclose tk in quotations. Line 6 should read:
IF uname$ = "tk" THEN
I made the correction and it ran just fine. Don't know what you mean by error on 477.
Regards, Stuart.
|
|