
TDBValueComboBox component for Borland Delphi

Do you need a lookup type of combo box where the descriptive items are
displayed, but a one character code is actually stored in the data field but
don't want to mess with the TDBLookupComboBox because you don't need another
darn TTable open on the form ?  Well, here's the component for you.

Freeware, including source, from OnTYme Software.

TDBValueComboBox is a descendant from TCustomComboBox that allows you to
specify not only the descriptive items for the drop down list, but also
the values you wish to have stored in data field when one of these descriptive
items is selected.  This is accomplished through a parallel TStrings property
called Values.  To use the component, simply hook up the DataSource to a
dataset and the DataField to the field that contains the *value* (i.e. one-
character code, etc.) data you wish to use.  Secondly, add the descriptive
items you want displayed in the drop down list in the Items property, and then
add the values for these items in the Values property.  Please make sure that
the appropriate values for the appropriate descriptive items are in the same
index position in the list, or you will get the *wrong* value stored in the 
data field when that descriptive item is selected.

******************************************************************************
One note, the Sorted property is not available simply because sorting the
descriptive items would screw up the 1-1 relationship between the index
positions of the Items property and the Values property.
******************************************************************************

Well that's about it, if you have any questions or comments please let me
know at CServe ID 73302,2561 or you can give me a buzz at 407-246-0930.
Also, if you make any improvements to the component please send me a copy
so that I can implement in any future versions.

About me

I specialize in manufacturing applications, specifically make-to-order, and
am looking also to build some high level components for configurations and
bills of material.  I come from a FoxPro/Clipper background and am always 
happy to swap stories about the differences, likes/dislikes, regarding the 
two environments.  I personally don't like coding in FoxPro or Clipper too 
much anymore if you know what I mean.  By the way, if you're located in 
Orlando FL. and are interested, I'm looking to form a Delphi study/user group
to promote discussion regarding problems and solutions with Delphi in the 
local community.  Give me a call and we'll talk some more.  My office is in 
my home, but it's fairly large so I could probably fit about 10-12 people 
tops.  I'm located in College Park in Orlando, in case you're wondering......

Tim Young
OnTYme Software

Bug Fix and Enhancement History

9/7/95	-	Original TDBValueComboBox

******************************************************************************
I make no warranties regarding the use of this component and will not be held
responsible for any damages incurred from the use of this component.  I will
try to fix any bugs found in a reasonably timely manner, but in the case of
this not happening you have the source so fix it yourself.
******************************************************************************

(C) Copyright 1995 OnTYme Software
