=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. [[http://creativecommons.org/licenses/by-sa/2.5/|Please read the Attribution-ShareAlike license before sharing code.]] [[toc]] === === ===API=== > [[atl|ATL File Viewer]] > [[IsIconic|Determine if a window is minimized.]] > [[IsUserAnAdmin|Determine if current user is an administrator]] > [[Get command line arguments]] > [[ErrorInAPI|Get last error]] > [[APIpopups|Popup menus with Windows API]] > [[Named Pipes]] > [[ProgressBar|API Progress Bars]] > [[DragAndDrop|Drag and Drop Functionality (Requires WMLiberty)]] > [[Hide And Show Menu Items]] > [[Open and Save File Dialogs]] ===Database=== > [[Simple Address Book|Simple Address Book Demo using Cheetah Database System]] > [[SimpleDatabaseFrameworkRAF|Simple Database Framework using a random access file]] ===Date Algorithms=== > [[Name Of Day|Get Name of Day for a Date]] > [[Day and Date Functions]] > [[When is Easter]] ===File I/O=== > [[Example - line input|Line input from a text file]] > [[Load a .CSV file into an array|Load an array from a .csv file]] > [[CopyFileFunction|Native file copying function]] ===Games=== > [[entrap1|Entrap puzzle - winner of Summer 2006 contest]] > [[entrap|Entrap puzzle - with wizard added]] > [[First To Fifty|First To Fifty Dice Game For Two Players]] > [[TextAdventureEngine|Text Adventure Engine]] > [[Chess]] ===Graphics=== > [[Scrolling line graph]] > [[LEDDemo|Simulating state-changing LEDs]] > [[FlushConserveBMP|How to FLUSH Without Running Out of Resources]] > [[PNG Graphic Dimensions|Getting the Dimensions of a PNG Image]] > [[DrawSpritesYourself]] ===GUI=== > **Windows:** > [[Centered Dialog_Modal Window]] > [[TransparentWindow|Transparent Window]] > [[ManagedCascade|Managed Cascade]] > [[Fake Window]] > **Controls:** > [[multilinebutton|Multiline Button Text]] > [[managing multi-listboxes|Managing Multiple Listboxes]] (Source and Destination Listboxes)===Listboxes=== > [[Alphabet Buttons]] > [[Make bmp button|Make Bitmap Button]] [[user:KcDan]] ===Internet=== > [[wsock_demo|Winsock Client/Server]] > [[HTML Music Page]] > [[Simple HTML page coder]] > [[@Rss Parser in Liberty Basic|Rss Parser]] [[user:ozgur_erdiller]] ===Interpreter=== > [[Tiny Basic v1.1]] ===Math Algorithms=== > [[Convert to Roman Numeral]] > [[DecimalToBinary|Decimal-to-Binary conversion function]] > [[Scientific notation|Conversion to Scientific notation]] > [[Pi a la modulus]] ===Media=== > [[Get the Length of a WAVE File|Get the length of a wave file]] ===Sprites=== > [[create_make_sprite|How to create and animate a sprite within one program]] > [[SpriteJump|A Jumping Sprite]] ===String Manipulation=== > [[GetWordCount|GetWordCount function]] > [[Removing characters from strings|Removing a character from a string]] > [[Remove From String II|Removing a character from a string 2]] > [[RemoveFromString3|Removing character(s) from a string]] > [[ReplaceInString|Replacing characters in a string]] > [[Parse LB4 Lessons To Texteditor|Parsing LB4 Lessons To Texteditor]] > [[Parse LB4 Lessons To Texteditor2|Parsing LB4 Lessons To Texteditor - another version]] > [[Calculating CRC32 values from a string|Calculating CRC-32 value from a string]] > [[sha256|Calculating the SHA256 digest from a string]] [[image:NEW.GIF]] > [[TranslationAssistant]] [[user:James_Young]] ===Utilities=== > [[Formatter|Code Formatter]] [[user:clydew]] > [[A Structured Program and Plot]] > ===Other Categories of Code=== //Add categories as needed in alphabetic order please!// > Code page link goes here! Enclose in double square brackets.