What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » function to cut text if length > 14

function to cut text if length > 14
Author: Message:
LifelesS
Full Member
***


Posts: 115
Reputation: 4
32 / Male / Flag
Joined: Dec 2006
O.P. function to cut text if length > 14
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
Best Regards,
Joćo Godinho
01-29-2007 07:21 PM
Profile E-Mail PM Find Quote Report
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: function to cut text if length > 14
code:
string.substring(0,14);
01-29-2007 07:25 PM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: function to cut text if length > 14
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
01-29-2007 07:28 PM
Profile PM Web Find Quote Report
LifelesS
Full Member
***


Posts: 115
Reputation: 4
32 / Male / Flag
Joined: Dec 2006
O.P. RE: function to cut text if length > 14
Thanks to both of you, I went to check it out on the online documentation of microsoft. :)

Thanks;)

This post was edited on 01-29-2007 at 07:34 PM by LifelesS.
Best Regards,
Joćo Godinho
01-29-2007 07:32 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On