GLBasic forum

Main forum => GLBasic - en => Topic started by: Pahl on 2005-Dec-18

Title: help with tutorial pls
Post by: Pahl on 2005-Dec-18
I'm currently reading through the tutorial and am at

1.4 Words:


LET a$="My"
LET b$="favourite number:"
LET c= 7
LET c$=a$ + " " + b$ + " : " + c
PRINT c$,0,20
SHOWSCREEN

The window pops up but it's blank. When I close the window "My Favourite number: 7" pops up briefly.

Any help would be appreciated.

Pahl


edit

I tried this test again and was a little more lucky. I entered everything exactly the same but this time the box opens and "My favorite number: 7" pops up but the window doesnt stay open. Is that suppose to happen? I added in MOUSEWAIT and that fixed it but am not sure wether the box was supposed to stay open without it.
Title: help with tutorial pls
Post by: Synthetic on 2005-Dec-18
If you would like to keep the window open just make the program run a loop:


loop = 1

while loop = 1
LET a$="My"
LET b$="favourite number:"
LET c= 7
LET c$=a$ + " " + b$ + " : " + c
PRINT c$,0,20
SHOWSCREEN
wend

This will keep the program running until variable loop doesn't equal 1.
Title: help with tutorial pls
Post by: Pahl on 2005-Dec-18
ahh cool, thanx. =)

Pahl
Title: help with tutorial pls
Post by: IceBlueLens on 2005-Dec-19
What Tutorial??
Title: help with tutorial pls
Post by: Synthetic on 2005-Dec-19
There are some tutorials in the help file. :)

Not to mention some sample code in the \Projects\Samples folder of your GLBasic install directory.