Unit NBSDBLst |
------------------------------------------------------------------------------- TNBSDBListBox - Component to fill a listbox with a database field. This is a simple version that only fills the listbox. It is not aware of when a DB-Navigator scrolls the dataset. It's perfect to use when you just want the user to select a record from a database. property DataSource : Set this to the datasource. (just like TDBEdit and the others) property DataField : The fieldname. property ExtraField : Use this to store a value in the Items.Objects. Really good if you want to maintain an index for every item. The field must be a "value" field. It only accepts: TIntegerField, TSmallintField, TWordField, TBooleanField. property Current_Item : This string contains the current selected Item. Easier to use than xxx.Items[xxx.ItemIndex]; property Current_Value : The stored ExtraField for the currently selected item. Easier to use than: LongInt(xxx.Items.Objects[xxx.ItemIndex]) TNBSDBListBox released as postcard-ware, which means that you are free to use (modify) this software and sourcecode as you see fit. But if you like it, and plan to use it, please send me a postcard with comments or suggestions. If you use this component in a commercial product, I would be greatful if you could give me some credits. Made by Andreas Oestlund, 1997. Address: Andreas Ostlund Norrbro 39 811 70 Jarbo Sweden E-Mail: andres@Kuai.se WWW: http://www.kuai.se/~andres Remember! Information wants to be free! -------------------------------------------------------------------------------
Classes |
Functions |
Register -
Types |
Constants |
Variables |
Functions |
Types |
Constants |
Variables |