What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » check whether if the contact is in a special list?

check whether if the contact is in a special list?
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: check whether if the contact is in a special list?
quote:
Originally posted by ultimatebuster
Interesting..
I thought indexOf uses a hashtable algorithm rather than a brute force search trhough all the elements.
That may be the case for an Array.indexOf() implementation (which is not available in JScript), but String.indexOf() looks for substrings in a search string. It first has to find the first substring character in the search string and then check whether the other characters are also there, or look elsewhere. To find an item in an array in JScript, we need to rely on loops as there's no such function provided by the Windows Script Engine.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
07-02-2010 06:24 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
check whether if the contact is in a special list? - by ultimatebuster on 07-01-2010 at 10:24 PM
RE: check whether if the contact is in a special list? - by djdannyp on 07-01-2010 at 10:38 PM
RE: check whether if the contact is in a special list? - by ultimatebuster on 07-01-2010 at 10:55 PM
RE: check whether if the contact is in a special list? - by Matti on 07-02-2010 at 10:05 AM
RE: check whether if the contact is in a special list? - by ultimatebuster on 07-02-2010 at 02:11 PM
RE: check whether if the contact is in a special list? - by Matti on 07-02-2010 at 06:24 PM
RE: check whether if the contact is in a special list? - by ultimatebuster on 07-02-2010 at 06:51 PM


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