It's often required to keep values from some predefined set in table field - for example, kind of operation, document type etc. User should be able to see
descriptive strings for each alternative from the set and to select the alternative he need. This can be accomplished by TDBComboBox or TListBox
components. But they have one fault: they write in data field an descriptive string, which can be up to tens of characters long. It's inefficient to keep in
database thousands of identical strings; it's hard for database engine to maintain them. However it is
enough to keep in database short integer numbers corresponding to index of the string - some kind of C++ enum type - which takes
much less space and is maintained much easier.
See OVDBEnumComboBox.txt in zip file for details of use and installation.
Download source code of TOVDBEnumComboBox component for Borland C++ Builder 3-6 (8K). It is freeware.
Back to VCL components