Shoutbox

Reducing the name of my contact - 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: Reducing the name of my contact (/showthread.php?tid=62819)

Reducing the name of my contact by Ruwen on 07-08-2006 at 02:11 PM

im calling my contacts name with MsgPlus.RemoveFormatCodes(Origin.substring(0,50));
But all my contact has Name - Where i know them from - Username
But how can i split them up.. so only the name will be use.. and not the two other thing?

in asp is:
arrContact = split(" - ",MsgPlus.RemoveFormatCodes(Origin.substring(0,50)));
But it doesnt work here


RE: Reducing the name of my contact by Ezra on 07-08-2006 at 03:20 PM

code:
strcontact = MsgPlus.RemoveFormatCodes(Origin);
arrcotact = strcontact.split(" - ");


RE: Reducing the name of my contact by Ruwen on 07-08-2006 at 04:53 PM

How do i call it?
var naam = arrcontact(0); ???


RE: Reducing the name of my contact by matty on 07-08-2006 at 04:58 PM

Isn't it arrcontact[1]?

segosa's reply to Ripping variables out from a string?? [solved]


RE: Reducing the name of my contact by Ruwen on 07-08-2006 at 05:33 PM

Wee.. it works :D