Shoutbox

function to cut text if length > 14 - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: function to cut text if length > 14 (/showthread.php?tid=71174)

function to cut text if length > 14 by LifelesS on 01-29-2007 at 07:21 PM

Does anyone knows a function to cut a text length if it's "> than something"?

I only got the If part... don't know how to "say" to cut it... :S

TIA


RE: function to cut text if length > 14 by foaly on 01-29-2007 at 07:25 PM

code:
string.substring(0,14);

RE: function to cut text if length > 14 by Stigmata on 01-29-2007 at 07:28 PM

create a substring out of it.

code:
text.substring(0,14);


0 = Starting position
14 = end position.

It just shows you whats in between :)

Hope this was some help
RE: function to cut text if length > 14 by LifelesS on 01-29-2007 at 07:32 PM

Thanks to both of you, I went to check it out on the online documentation of microsoft. :)

Thanks;)