Shoutbox

cuting strings - 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: cuting strings (/showthread.php?tid=94000)

cuting strings by scripto on 03-03-2010 at 08:46 AM

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


RE: cuting strings by Spunky on 03-03-2010 at 10:02 AM

Javascript code:
function OnEvent_ChatWndReceiveMessage(Pluswnd, Origin, Message){
Message = Message.split(" ");
//Message is now an array containing each seperate word
}