lbc-bnr.jpg (17513 bytes)
lb3.jpg (3926 bytes)
 

HOME

Features

Articles

LB3 Resources

Tools,
Links &
Site Info

Liberty Basic Version 3

Version 3 of Liberty Basic is a 32 bit implementation of the language.  There may be some   incompatibilities with some earlier code for LB2.x.  All code on this page is LB3 ready. 

IMPORTANT: Please observe the terms of use before downloading code.  It is on the Site Information page.

LB 3 Featured Resources
39.gif (672 bytes)  PlayMPEG32.DLL - A DLL for playing MPEG audio files (MP3 files), it was designed with Liberty Basic users in mind.  It allows continuous playback of an MP3 song file simply by issuing a single DLL call.  No other intervention is required to keep the MP3 song looping.  It plays in the system's background as a threaded process.  Download the DLL, an example and the documentation: PlayMPEG32.zip (528Kb)
DatePup32.DLL:  "The hound that loves to fetch dates for you."  I wrote DatePup32 specifically for Liberty Basic 3.x users.  It is designed to find Julian Day values, Gregorian dates, perform Date Math, Reformat Dates, Validate Date values and identify Week Numbers among other things.  It comes with documentation and a sample Liberty Basic program that demonstrates the function at work.   This is version 1.1.c - A maintenance release that fixes several bugs.  DatePup32.zip, 34kb
PlayMIDI32.DLL - A DLL for playing MIDI files, it was designed with Liberty Basic users in mind.  It allows continuous playback of a MIDI song simply by issuing a single DLL call.  No other intervention is required to keep the MIDI selection looping.  It plays in the system's background as a threaded process.  Download the DLL, an example and the documentation:  PlayMIDI32.Zip (20kb)
LB3 Downloads
Maintain CB states.rft
(9kb)
A short demo and article that explains how to cause a LB GUI to maintain checkbox states in an options window between displays of the window.  It is in richtext format.   The demo can be cut from the article and pasted into your LB editor to run.
IsFile32.zip
(7kb)
Is file is a simple DLL that allows the LB programmer to determine whether a specific file exists in a specific location with a very simple DLL call.  Less complex than the native FILES statement, and it handles long file names and paths that contain spaces.   The zip file includes a short LB demo program and a brief rtf file explaining the operation of the DLL. 
Directory Tree
(5kb)
Directory Tree is a small program that includes a function that will "walk" a directory tree and catalog all the directories and files at all levels up and down that tree.   It uses a recursive call to itself to accomplish this task.  It is fairly interesting programming for anyone who has ever wondered about recursion.
Working With Comboboxes
(4kb)
Working with Comboboxes is a demo and short write-up covering the fundamentals of using a combobox.   The demo allows the user to add items to the combobox on the fly as well as resetting the combobox to a blank condition.  This supplements the ThingyII download below.
Paths and Filenames
(3kb)
Paths and Filenames is a short tutorial and demo from a recent LBNews Tips Corner showing how to separate a filename and a path from the value returned by the FileDialog command.  It includes two reusable functions which I am grateful to Alyce Watson for her generosity in allowing me to include.
LBNR-2
(1398kb)
This is the complete installable (includes source code and LB3 runtimes) version of the Liberty Basic News Reader, which would be created following the instructions in the article "Road To Release" (see the Premier Articles section of the site).  The LBNR-2 program is basically unchanged from the LBNR version found in the article below.
Liberty Basic News Reader
(6kb)
The LBNR is really an article and demo program I wrote for the LBNews Letter (issue 97).  It demonstrates the dynamic loading of a textbox from a text file with just a couple commands.
Centering Windows
(4kb)
An article from one of the LBNews letters I edited which explains several methods of centering windows.  Example code is imbedded in the article.
Merrel the Great
(223kb)
A QCard demo program that is also a cute little magic trick.  Yes that is right, Merrel the Great can determine which card you have selected from a group laid out before you.  You got to try it out to believe it.
Hocus Focus
(8kb)
Hocus Focus is another demo program / article I wrote for the newsletter (Issue 98) and it demonstrates how to determine when a window or control gains and looses focus.  It uses the windows API call GetFocus.
ProgressBar
(2kb)
ProgressBar is a owner drawn progress bad that uses a graphics box that is filled progressively to simulate a progress bar.
ThingyII
(4kb)
An example of how to use comboboxes in LB3.   Simulates a build list window.  Includes comments.

This page also has a couple older LB2 files that should work with LB3

LB2 Downloads
Slider
Control 2

(3kb)
This is an updated slider control built on the work that Ryan Jeffers had done. This one uses sprites to get a more polished look. It should work with either LB2 or LB3. I still need to write up some instructions on using it, so if you download it, you are on your own right now.
Translate
(4kb)
Translate is a demo I wrote some years back to demonstrate how to dynamically load a listbox based on the values in another listbox.   I wrote after a young Russian had posted his unique Russian to English dictionary program, which was an interesting idea but had an unworkable GUI.  I had hoped he might improve the GUI based on the demo, but he soon left the LB fold for a different language.