What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » cuting strings

cuting strings
Author: Message:
scripto
New Member
*


Posts: 14
33 / – / Flag
Joined: Jan 2010
O.P. cuting strings
hey
i was wondering how to separate the words of an incoming message and add each word into am array cell...
example:
received message : hello my\friend
in msg[1] we'll have hello
and msg[2] we'll have my\friend
the only parameter the we use it to separate is space
03-03-2010 08:46 AM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: cuting strings
js code:
function OnEvent_ChatWndReceiveMessage(Pluswnd, Origin, Message){
Message = Message.split(" ");
//Message is now an array containing each seperate word
}
<Eljay> "Problems encountered: shit blew up" :zippy:
03-03-2010 10:02 AM
Profile 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