Quote Originally Posted by xiaoyao View Post
The actual situation is that I only use it to read 2 data, and the maximum number does not exceed 50.
Again, this is not the right place for you to "think out loud" (beginner-style, in bad english).

It goes without saying, that "finding the index among Long-Values, with max 50 entries", performs best, when done:
- via brute force, against a normal VB-LongArray with 50 slots
- using a FindIndexForValue-function, placed in a *.bas-Module

But nothing of that has anything to do, with the universally usable Class-encapsulation of cHashD (which this thread is dedicated to).

Please move your "musings, and findings" whilst "learning to program" into the Main-Forum please.

Olaf