On Feb 15, 2007, at 6:08 PM, RBNUBE wrote:
d.Value(theList(i)) = True
This (the "i") seems to imply that he's looping through the
Dictionary.
Will looping through a Dictionary really be faster than looping
through an
array?
No, the "i" is the index of "theList" array, which is the value he's
passing to the dictionary. So in this case he's looping through an
array, not the dictionary.
To "search" the dictionary you'd use the dictionary's hasKey function
to see if the value is in it:
if d.hasKey(anItem) then...
Marc Zeedar
Publisher, REALbasic Developer magazine
www.rbdeveloper.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>