Multi Dictionary

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Library  Other libraries, changes (revision history), About prices and registration 

Description of Multi Dictionary

Multithreaded dictionary object. Lets you work with unique/non-unique keys in VBA/VBS/ASP/WHS envinronment (share application/session variables in ASP)

Links

License

Features and functionality of Multi.Dictionary class

Features

  • Free-threaded hi-speed dictionary algorithm (better than Scripting.Dictionary, which is apartment threaded)
  • Unique/nonunique keys (map/multimap).
  • Connect to another dictionary object in the same process (Connect method).
  • Lock and Unlock methods to synchronize multithreaded tasks.
  • Items and Keys enumerators.
  • Bulk remove dictionary elements (using RemoveAll method).
  • Bulk Save and Load dictionary data to/from a disk.

Other functionality

Using Dictionary class

How to use Dictionary class in VBA (VB5, VB6, Word, Excel, VBNet, …), VBS / JS (ASP, WSH).

Multi Dictionary classes

Dictionary Free threaded dictionary object. Lets you work with unique/non-unique keys, any VARIANT values and connect to other dictionary in the same process.

Multi Dictionary enums

CompareMethod Comparison method for comparing string keys in a Dictionary object.

Examples

 Enumerate Multi.Dictionary keys and items  
  Dim D As New Multi.Dictionary
  
  D.UniqueKeys = False
  
  'Fill dictionary with some data
  D("Peter") = 12
  D.Add "Alex", 2534
  D.Add "Alex", 2535
  D.Add "Alex", 14
  
  Dim I As Long, Keys()
  
  'Get dictionary Keys
  Keys = D.Keys
  
  'Loop through Keys array
  For I = 0 To UBound(Keys)
    Debug.Print "Key", I, Keys(I)
  Next

  Dim Items()
  
  'Get dictionary Items
  Items = D.Items
  
  'Loop through Items array
  For I = 0 To UBound(Items)
    Debug.Print "Item", I, Items(I)
  Next


' output:
Key            0            Alex
Key            1            Peter
Item           0             2534 
Item           1             2535 
Item           2             14 
Item           3             12

XML/PAD
All samples
© 1996 – 2008 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 1.1.2.3