I picked up Teach Yourself Beginning Programming in 24 Hours from the library and it starts off with a simple program in Liberty BASIC. The book comes with v2.02, but it won't install for me because it's not compatible with 64 bit systems. I installed a later version (v4.9.3) but now the commands aren't working for me, I'm guessing something changed between releases.
This is the program I was supposed to enter:
' Filename: First.bas
'
'Prints a countdown from 10 to 1
For i = 10 To 1 Step -1
Print i
next i
Print "Blast Off!"
End
It says to hit Shift+F5 to compile and run the program, but shift +F5 doesn't do anything for me. I have two toolbar options to Compile to GUI or to BAS Code with Outline. Either of those gets me this:
'** Created by Liberty BASIC Workshop - 7/21/2009 6:25:58 PM
'** Window Title
[InitColors]
'Please use default colors when possible.
'ForegroundColor$ = "Black"
'BackgroundColor$ = "Buttonface"
True = 1 : False = 0
[WindowSetup]
NOMAINWIN
WindowWidth = 1325 : WindowHeight = 618
UpperLeftX = INT((DisplayWidth-WindowWidth)/2)
UpperLeftY = INT((DisplayHeight-WindowHeight)/2)
[ControlSetup]
Menu #main, "&File" , "E&xit", [quit]
Open "Window Title" for Window as #main
#main "trapclose [quit]"
#main "font ms_sans_serif 10"
[loop]
Wait
[quit]
close #main : END
And the Run button gives me a Path/File Access Error. This is my first attempt at programming so I don't have any idea what I should do, but I'm hoping I can figure out how to make this book compatible with the newer version of BASIC. Any ideas about what I could be doing wrong?
Thanks.
This is the program I was supposed to enter:
' Filename: First.bas
'
'Prints a countdown from 10 to 1
For i = 10 To 1 Step -1
Print i
next i
Print "Blast Off!"
End
It says to hit Shift+F5 to compile and run the program, but shift +F5 doesn't do anything for me. I have two toolbar options to Compile to GUI or to BAS Code with Outline. Either of those gets me this:
'** Created by Liberty BASIC Workshop - 7/21/2009 6:25:58 PM
'** Window Title
[InitColors]
'Please use default colors when possible.
'ForegroundColor$ = "Black"
'BackgroundColor$ = "Buttonface"
True = 1 : False = 0
[WindowSetup]
NOMAINWIN
WindowWidth = 1325 : WindowHeight = 618
UpperLeftX = INT((DisplayWidth-WindowWidth)/2)
UpperLeftY = INT((DisplayHeight-WindowHeight)/2)
[ControlSetup]
Menu #main, "&File" , "E&xit", [quit]
Open "Window Title" for Window as #main
#main "trapclose [quit]"
#main "font ms_sans_serif 10"
[loop]
Wait
[quit]
close #main : END
And the Run button gives me a Path/File Access Error. This is my first attempt at programming so I don't have any idea what I should do, but I'm hoping I can figure out how to make this book compatible with the newer version of BASIC. Any ideas about what I could be doing wrong?
Thanks.