![]() |
|
#1
|
|||
|
|||
|
HI
someone here explained it to me but i admit im a bit slow these days: what does dbcombobox gives me and what does dblookupcombobox gives me? and more: as far as i c they only show me the value of the current record, so why would i use this and not a simple dbedit? 10x Amos |
|
#2
|
|||
|
|||
|
DBComboBox gives you the current record, but you can have a pick list of possible values for the user to choose from. If you want you can prevent the user from adding anything that is not in the drop-down list.
DBLookUp is the same, but the list of choices is derived from another database, rather than added either at design time or in the program. Russell Crosser rcrosser@netlink.com.au Click accept if this is OK |
|
#3
|
|||
|
|||
|
Here is the link to m answer to your question about this
before. http://www.delphipages.com/threads/thread.cfm?ID=31191&G=31162 What is difficult to understand? DBCombobox has a property called Strings. The items you list in the Strings property are the ONLY values that can be stored to the field designated by the DataField property. DBLookupComboBox basically hooks up another field's values to the field designated in the DataField property. Let's say I have a list of state names in the State table. In my DBLookupComboBox called dblcbxState, I set my DataField to the State field in my Customer DB and the Datasource to the source for my Customer DB. Then, I hook this up by setting the ListSource to the DataSource for my States Table and set the ListFIeld to StateName. Then, When I drop down the combobox, I have a list of states to select from. If you just want to show the values in the current table for the column (field), use the component I recommended in my previous post. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|