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.

Author
Message
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 14th Jan 2011 13:59
For those of us who are more experienced with the many BASIC languages out there, you may be familiar with the TRIM command.

In short, the TRIM command removes any excess spaces from the beginning and end of a string while leaving the spaces in the middle perfectly intact. Comes in very handy in all sorts of scenarios.

From what I can see, there is no such command in DBpro (please correct me if I'm wrong, though...)

Anyway, in case there isn't such a command, simply add in this function to your code and you will have access to it:



Here is an example of its use:



I know it's pretty simple, but it may be just one of those little things that helps someone. If it can help just one person I'll be happy. Just thought I'd share!

Thanks guys!

Malevolence: The Sword of Ahkranox
The infinite RPG
http://www.msoa-game.com
Jeff Miller
21
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: New Jersey, USA
Posted: 14th Jan 2011 14:06
The trim command, and other handy string commands, can be found in IanM's Matrix1Utilities plugin.
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 14th Jan 2011 14:29
Aww, damn.

Well, it was worth a shot anyway. Just trying to help. Thanks for pointing me in the right direction!

Malevolence: The Sword of Ahkranox
The infinite RPG
http://www.msoa-game.com

Login to post a reply

Server time is: 2026-07-21 15:13:20
Your offset time is: 2026-07-21 15:13:20