Programming with Qbasic?

Discuss, argue, whine, talk but not about Elma.

Moderator: Moporators

Post Reply
Xian
Banned
Posts: 60
Joined: 11 Jul 2003, 13:00
Location: Holsbybrunn, Sweden
Contact:

Programming with Qbasic?

Post by Xian »

Is there any guy in this forum who is programming in Qbasic? I learned a little some time ago and I will start again and try to learn more. Maybe someone can help me? Or start together with me?
[RH] ||TT: 42.23.xx || Mimento Vivere...
User avatar
Abula
Moposite admin
Posts: 4465
Joined: 16 May 2002, 23:00
Team: FM
Location: Helsinki
Contact:

Post by Abula »

I did some when I bought my computer and even programmed one game.

screen 12;
print "Hi";

Correct? Actually I remember nothing anymore and should review a bit.
40:02,71 (151.) | WCup4: 8. | 3x WR | 3x GAA | 11x FEM | KOM | The History of Elasto Mania (1995-2018)
User avatar
Stini
39mins club
Posts: 202
Joined: 5 Dec 2002, 22:15
Team: ICE
Location: Helsinki, Finland

Post by Stini »

Abula wrote:I did some when I bought my computer and even programmed one game.

screen 12;
print "Hi";

Correct? Actually I remember nothing anymore and should review a bit.
Actually it's just:

SCREEN 12
PRINT "Hi"


Not ";" in the end of the line.
Though it's possible to use ";" after PRINT "Hi", but it's not necessary. If you put ";" there, it means that the cursor doesn't go to the next line (so if you make another print command, it will be on the same line, not below the "Hi").
And that SCREEN 12 isn't really necessary either, it just changes the screen mode, but if you just want to print "Hi" it really isn't necessary to change that.

Oh yeah, I've programmed something small with QBasic, but it really sucks. It's easy to learn and use, but it's so slow and you'll always go out of memory so you can't do anything big with it.
User avatar
John
first 35tt
Posts: 4738
Joined: 28 Sep 2002, 19:42
Team: WNO
Location: Luleå, Sweden

Post by John »

I can program some on my calculator :) but I could program some in qbasic before too but now I have forgotten everything
Image
Post Reply