I need some help with Liberty BASIC

Alex C

Senior member
Jul 7, 2008
355
0
76
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.
 

Alex C

Senior member
Jul 7, 2008
355
0
76
Nevermind, I've got it sorted out now. I accidentally installed Liberty BASIC Workshop, when I wanted just Liberty BASIC.
 

Modelworks

Lifer
Feb 22, 2007
16,240
7
76
Glad you got it working.
A lot of people put down basic as not being a good language , c or c++ is so much better, etc, but that is a shame since basic is a very good language for many things.
One of my favorite versions of basic is Pure Basic . I use it for a lot of things, often more than c or c++ since it works on win,linux,mac . The company is really great . Buy it once and upgrades are free for life and versions for all OS are included in that. They have been around for 10 years, great company.
http://www.purebasic.com/index.php