Shoutbox

Question about scripting - 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: Question about scripting (/showthread.php?tid=90643)

Question about scripting by T-PO on 05-15-2009 at 02:10 PM

Hi,

I'm just starting to look at scripts and trying to understand them. Now I have question:

I have a list of contacts (d_emails) and I want to check the status of these contacts during sign in...

function OnEvent_Signin(Email) {
   d_emails = l_emails.split(",");
   for (var i in d_emails) {
       Debug.Trace("Status van " + d_emails[i] + " : " + Messenger.MyContacts.GetContact(d_emails[i]).Status);         
   }           
}

Now the debugger shows an error saying it needs an Object.
I can't find out what's wrong. Can you please help?

Regards,

T-PO


RE: Question about scripting by Jesus on 05-15-2009 at 02:42 PM

which line does the debugger point at?
also, how is l_emails defined?

If you provide this information your problem will be a lot easier to solve.


RE: Question about scripting by Spunky on 05-15-2009 at 03:16 PM

Try a trace on d_emails[i] as all I can see that may be wrong is that the email addresses are malformed or have extra characters in them ^o)