BitVector Library That Uses Simple Array of Longs
Author: David Qualls
Version Compatibility: Visual Basic 6
This module and list of functions are designed for use with databases, but works anywhere an array of Longs is simpler to use than a full-blown class. Includes a complete selection of functions: get, set, clear, toggle, Xor, And, Or, toString, toBits, more. Also includes functions to prevent bit-scrambling while converting negative values. Thoroughly documented in comments.
Instructions: Copy the declarations and code below and paste directly into your VB project.