What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Ripping variables out from a string?? [solved]

Ripping variables out from a string?? [solved]
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: RE: Ripping variables out from a string??
Matty doesn't seem to have understood your question.

You can use the ".split" method of a string variable to return an array.

For example:

code:
var blah = "#DoThat;103;208";
var arr = blah.split(";");

var var1 = arr[1]; // note it starts at 0, so arr[0] = #DoThat
var var2 = arr[2]; // var2 will be 208


EDIT: Damn you Dhaya. :p

This post was edited on 07-07-2006 at 09:16 PM by segosa.
The previous sentence is false. The following sentence is true.
07-07-2006 09:15 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Ripping variables out from a string?? [solved] - by kjfk on 07-07-2006 at 08:58 PM
RE: Ripping variables out from a string?? - by matty on 07-07-2006 at 09:01 PM
RE: RE: Ripping variables out from a string?? - by kjfk on 07-07-2006 at 09:10 PM
RE: RE: Ripping variables out from a string?? - by segosa on 07-07-2006 at 09:15 PM
RE: Ripping variables out from a string?? - by Dhaya on 07-07-2006 at 09:14 PM
RE: Ripping variables out from a string?? - by Dhaya on 07-07-2006 at 09:18 PM
RE: Ripping variables out from a string?? - by kjfk on 07-07-2006 at 09:18 PM
RE: Ripping variables out from a string?? [Solved] - by matty on 07-07-2006 at 09:23 PM
RE: Ripping variables out from a string?? [solved] - by dramado on 07-08-2006 at 06:43 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