rtrussell
Nov 3, 2013
Shared Code
Welcome to the shared code page. All code here is provided courtesy of our wonderful Liberty BASIC wikispace members. If you'd like to add code, just create a new page and link to it here under the proper category.Tips and information should go on the Tips page. If you have code that you don't want to allow others to modify, create a page on Member Pages and link to your code there.
Code linked to in this public area can be modified by all members. (Modifying means deleting non - working code, enhancing valid code, or correcting erroneous code.) Please make sure that code works properly. Test it before posting it. No harmful code is allowed.
If you correct someone else's code, consider sending them a message through wikispaces or the Liberty BASIC forum explaining your changes.
Please read the Attribution-ShareAlike license before sharing code.
Table of Contents
Audio/Sound
API
- ATL File Viewer
- Determine if a window is minimized.
- Determine if current user is an administrator
- Get command line arguments
- Get last error
- Popup menus with Windows API
- Named Pipes
- API Progress Bars
- Drag and Drop Functionality (Requires WMLiberty)
- Hide And Show Menu Items
- Open and Save File Dialogs
- Calling methods in COM objects
Database
- Simple Address Book Demo using Cheetah Database System
- Simple Database Framework using a random access file
Date Algorithms
File I/O
- Line input from a text file
- Load an array from a .csv file
- Native file copying function
- File Library -
lbjoseph - API file truncate
Games
- Entrap puzzle - winner of Summer 2006 contest
- Entrap puzzle - with wizard added
- First To Fifty Dice Game For Two Players
- Text Adventure Engine
- Chess
- 2D Maze
- Cave Dude Eat Food
- Mining game
-
Graphics
- Scrolling line graph
- Simulating state-changing LEDs
- How to FLUSH Without Running Out of Resources
- Getting the Dimensions of a PNG Image
- DrawSpritesYourself
- gx Graphics Library -
lbjoseph
GUI
- Windows:
- Centered Dialog_Modal Window
- Transparent Window
- Managed Cascade
- Fake Window
- Multiple File Selection Dialog -
lbjoseph
- Controls:
- Multiline Button Text
- Managing Multiple Listboxes (Source and Destination
Listboxes
Internet
Interpreter
Math Algorithms
- Convert to Roman Numeral
- Decimal-to-Binary conversion function
- Conversion to Scientific notation
- Pi a la modulus
- Vector 2d library (a library & demonstrations)
-
Sprites
String Manipulation
- GetWordCount function
- Removing a character from a string
- Removing a character from a string 2
- Removing character(s) from a string
- Replacing characters in a string
- Parsing LB4 Lessons To Texteditor
- Parsing LB4 Lessons To Texteditor - another version
- Calculating CRC-32 value from a string
- Calculating the SHA256 digest from a string
- TranslationAssistant -
James_Young - SubList Library -
lbjoseph
Utilities
- Code Formatter -
clydew - A Structured Program and Plot
- XREF - A LB Cross Referencer terciops
- Field Finder - A Navigation Utility using LB and Google Earth terciops
Other Categories of Code
Please add categories as needed in alphabetic order.- Code page link goes here. Enclose your user name after in double square brackets.