What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Reducing the name of my contact

Reducing the name of my contact
Author: Message:
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. Reducing the name of my contact
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
07-08-2006 02:11 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Reducing the name of my contact
code:
strcontact = MsgPlus.RemoveFormatCodes(Origin);
arrcotact = strcontact.split(" - ");

[Image: 1-0.png]
             
07-08-2006 03:20 PM
Profile PM Web Find Quote Report
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. RE: Reducing the name of my contact
How do i call it?
var naam = arrcontact(0); ???
07-08-2006 04:53 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Reducing the name of my contact
Isn't it arrcontact[1]?

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

This post was edited on 07-08-2006 at 04:59 PM by matty.
07-08-2006 04:58 PM
Profile E-Mail PM Find Quote Report
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. RE: Reducing the name of my contact
Wee.. it works :D
07-08-2006 05:33 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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