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.
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.
ahh cool, thanx. =)
Pahl
What Tutorial??
There are some tutorials in the help file. :)
Not to mention some sample code in the \Projects\Samples folder of your GLBasic install directory.