I have my TDBComboBox now just a database field has been tilted in which only one y
or Can be N
.
I should do it a little bit, and show it like yes
or no
instead How can I do this?
The solution was for me:
- Switch to the form in Design view
- Database Value
- YesNoCDS
- As a TClientDataSet with two fields (yes called noceds)
- DisplayValue
- Right-click on and create the
Dataset
- Add data to YesNoCDS in
FormShow >. Code> Event (It looks like a hip, but I do not see any way to do this in the design view)
- Create TDATOSOS on a form called Hanoodes and create your
DataSet < / Code> YesNoCDS
- On YesNoCombo, set
ListSource
on YesNoDS, and then set DisplayValue andKeyField
tolist fields
Database Values
No comments:
Post a Comment