Why won't this run?

BlitzPlus Forums/BlitzPlus Beginners Area/Why won't this run?

methodman3000(Posted 2013) [#1]
Graphics 1072, 768, 0,2
SetBuffer BackBuffer



Print "Calculator"
Delay 1000

Print "Press a if you want to add"
Print "press s if you want to subtract"
Print "press m if you want to multiply"
Print "d if you want to divide"
Delay 2000

While Not KeyHit(1)




Repeat

selection$ = Input ("What do you choose? ")
If Not selection = "e" Then
Number1 = Input ("What is the first number? ")
Number2 = Input ("What is the second number? ")
Print "The answer is "
Print " "
If selection = "a" Then Print number1 + number2
If selection = "s" Then Print number1 - number2
If selection = "m" Then Print number1 * number2
If selection = "d" Then Print number1 / number2
Print " "

EndIf

Until selection = "e"
Print
Print "Thank you for using the calculator"
Delay 2000
Wend
Flip
End


xlsior(Posted 2013) [#2]
1) setbuffer Backbuffer()
2) print " " instead of just print


methodman3000(Posted 2013) [#3]
I was a little confused doesn't print by itself create a blank line in many basic languages it does.

Is that what print "" does
I thought Print " " was to capture something. Guess I have to try somethings.

Thanks


gerald(Posted 2013) [#4]
Is 1072 supposed to be 1024 x 768?
Error in graphics call?


xlsior(Posted 2013) [#5]
It's running in windowed mode, you can pretty much whatever dimensions you want there.