ASP Best Practices

Previous Topic Next Topic

Using the Dictionary Object for Lookup

The VBScript Dictionary object enables fast lookup of arbitrary key/data pairs. Because the Dictionary object gives you access to array items by key, it is fast for finding items that are not in contiguous memory, since you are specifying a key, rather than knowing where in the array the item is located.

Use the Dictionary object when you have set a high priority on fast searches of nonlinear data.


© 1997-1999 Microsoft Corporation. All rights reserved.