General Discussions

QBASIC Frustration – buddboy

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
I need to vent... my QBASIC compiler is being stupid... does anyone see anything wrong with this?

LET open$ = open

It keeps finding a syntax error with that. It's crucial because i need to store my input in it. No matter what i put, like not declare it, not even have it and just put the variable after the input statement, it won't work! lol... it makes me mad... lol, if anyone thinks they could compile the code for me that would be great... i don't know why BASIC code will never work for me, first BlitzBASIC, now QBASIC...
BTW, don't ask why i'm coding in QBASIC...it's just easier to do what I'm doing in QBASIC, plus i was bored..

------------------
In the stock market, you must buy high and sell low...Wait! That's not right!
--------------
Yes, I can be intelligent at times!!

Ereon

Member

Posts: 1018
From: Ohio, United States
Registered: 04-12-2005
Put open in quotations.

LET open$ = "open"

In PRINT, LET or any other assigning of strings you have to put the text in quotations on both sides. And there's nothing wrong with Qbasic, its a good language, and the one I started in myself, if you have any more question please don't hesitate to PM me.

Ereon

------------------

Crazed Madman
Member

Posts: 14
From: New Hampshire USA
Registered: 03-10-2006
Qbasic.... heh i have a robot that uses Pbasic

------------------
The meaning of life is... ummmm....
oh wait i just had it!

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
lol... i finished it anyway, i just didn't declare the variable, i let the input command declare it... lol... soon i'll post the program on here.... in case you want to see it... lol...

------------------
In the stock market, you must buy high and sell low...Wait! That's not right!
--------------
Yes, I can be intelligent at times!!

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
well, here's a demo of the full program, which isn't finished...

http://www.ihud.com/file.php?file=110306/1142105958/COROOMS.EXE

------------------
In the stock market, you must buy high and sell low...Wait! That's not right!
--------------
Yes, I can be intelligent at times!!

Ereon

Member

Posts: 1018
From: Ohio, United States
Registered: 04-12-2005
YAY! A text based adventure, I love those, thanks for posting it Buddboy.

------------------

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
lol thnx... it's just the first room... i've got the other five to do.. lol, they'll get more complicated, that one was just to acquaint people with the way it works... lol...

------------------
In the stock market, you must buy high and sell low...Wait! That's not right!
--------------
Yes, I can be intelligent at times!!