=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]] === === ===Audio/Sound=== > [[SpeechLibrary|Speech Library]] [[user:lbjoseph]] > [[Get the Length of a WAVE File|Get the length of a wave file]] > [[basic/Get the length of a wave file 2|Get the length of a wave file 2]] > ===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]] > [[Calling methods in COM objects]] > [[BAS File Association Utility]] ===Database=== > [[Simple Address Book|Simple Address Book Demo using Cheetah Database System]] > [[SimpleDatabaseFrameworkRAF|Simple Database Framework using a random access file]] > [[file:SQ3_4_LB (1).zip|SQ3_4_LB.dll file needed for LB and SQLite]] [[tbohon]] ===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]] > [[File Library]] [[user:lbjoseph]] > [[API file truncate]] ===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]] > [[2DGameWallBorderExample|2D Maze]] > [[2DGameBorderWallExample2|Cave Dude Eat Food]] > [[steved14000|Mining game]] > ===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]] > [[gxGraphicsLibraryHome|gx Graphics Library]] [[user:lbjoseph]] ===GUI=== > **Windows:** > [[Centered Dialog_Modal Window]] > [[TransparentWindow|Transparent Window]] > [[ManagedCascade|Managed Cascade]] > [[Fake Window]] > [[MultipleFileSelectionDialog|Multiple File Selection Dialog]] [[user:lbjoseph]] > **Controls:** > [[multilinebutton|Multiline Button Text]] > [[managing multi-listboxes|Managing Multiple Listboxes]] (Source and Destination ===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]] > [[Vector 2d library (a library & demonstrations)| Vector 2d library (a library & demonstrations)]] > ===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]] > [[TranslationAssistant]] [[user:James_Young]] > [[SubList Library]] [[user:lbjoseph]] ===Utilities=== > [[Formatter|Code Formatter]] [[user: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.