On Feb 15, 2007, at 3:30 PM, Tim Jones wrote:

Then, to check for the existence, during the display methods I use If d.KeyExists theList(i) Then ...

My question is - with potentially 10K selection lines, is this an abuse of the dictionary class? Will it be faster than parsing an array of the same data?

This is exactly what dictionaries are for!

As a test once, I loaded 200K spelling words in a dictionary and checked a user's typing in an editfield for spelling errors. Turned out my code for retrieving the last full word typed (not as simple as it sounds) took much longer than the superfast dictionary look-up. I had to get that optimized, but eventually I had it so the user could type full speed without the live spelling checking slowing things down. Pretty cool! I just love dictionaries.


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>

Reply via email to