Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / My text wrapping functions

Author
Message
Broken_Code
15
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 31st Oct 2011 11:27
Hello,

I just finished these functions for a project I'm working on at the moment and thought they may be of some use to someone else too.
So here they are, a set of functions for text wrapping a long string of text:

Commands:


Functions:


Example (no media, fully commented):


This wrapper is also capable of carraige returns and variable recognition (although this has to be variable-specificly coded- see example for details) and has the ability to add any formatting you like.

I hope this is of some use to somebody,
Broken_Code
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 31st Oct 2011 19:49
Nice of you to share
Maybe the Code Snippets forum would have been a more proper place to post this though.


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2026-07-10 01:58:47
Your offset time is: 2026-07-10 01:58:47