What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Getting the Xth word of a sentence

Getting the Xth word of a sentence
Author: Message:
Riko15
New Member
*


Posts: 6
28 / Male / Flag
Joined: May 2010
O.P. RE: RE: Getting the Xth word of a sentence
quote:
Originally posted by matty
js code:
var s = 'Hi, I\'m John';
var sArray = s.split(' ');
Debug.Trace(sArray[1]);

/*
    sArray:
        0 = Hi,
        1 = I'm
        2 = John
*/


Thnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(Y)
Edit:

Doesn't work? o,o

This post was edited on 05-10-2010 at 04:33 PM by Riko15.
05-10-2010 04:28 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Getting the Xth word of a sentence - by Riko15 on 05-10-2010 at 03:06 PM
RE: Getting the Xth word of a sentence - by matty on 05-10-2010 at 03:51 PM
RE: RE: Getting the Xth word of a sentence - by Riko15 on 05-10-2010 at 04:28 PM
RE: Getting the Xth word of a sentence - by matty on 05-10-2010 at 04:43 PM
RE: RE: Getting the Xth word of a sentence - by Riko15 on 05-10-2010 at 05:31 PM
RE: Getting the Xth word of a sentence - by matty on 05-10-2010 at 05:49 PM
RE: RE: Getting the Xth word of a sentence - by Riko15 on 05-10-2010 at 06:14 PM
RE: Getting the Xth word of a sentence - by matty on 05-10-2010 at 08:02 PM
RE: Getting the Xth word of a sentence - by Adeptus on 05-11-2010 at 01:41 AM


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