What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » RegExp help/Alternative?

RegExp help/Alternative?
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: RegExp help/Alternative?
You can return an array...

Javascript code:
function RunReg(){
    var myArray = new Array();
    myArray[0] = "Blah";
    myArray[1] = 404;
    myArray[2] = "example";
 
    return myArray;
}
 
function OtherFunction(){
    var ret_val = RunReg();
    Debug.Trace(ret_val[1]);
}


EDIT: Also. If you put the media message in a string:

Javascript code:
media_string = media_string.split("\0");
for(var s in media_string){
    //Do things for each section
}


This post was edited on 01-12-2009 at 03:01 AM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
01-12-2009 03:00 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
RegExp help/Alternative? - by ArkaneArkade on 01-12-2009 at 02:39 AM
RE: RegExp help/Alternative? - by Spunky on 01-12-2009 at 03:00 AM
RE: RE: RegExp help/Alternative? - by ArkaneArkade on 01-12-2009 at 03:32 AM
RE: RegExp help/Alternative? - by Spunky on 01-12-2009 at 03:44 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