是否有与ItemIndex对应的TDBComboBox? [英] Is there a TDBComboBox equivalent that goes by ItemIndex?

查看:89
本文介绍了是否有与ItemIndex对应的TDBComboBox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TDBComboBox的帮助文件条目中,它表示所选选项的文本成为该字段的新值。是否有任何类似的控件通过ItemIndex代替文本? (例如,代表枚举类型。)

In the helpfile entry for TDBComboBox, it says that the text of the selected option becomes the new value for the field. Is there any similar control that goes by ItemIndex instead of text? (To represent an enumerated type, for example.)

推荐答案

尝试使用TDBLookupComboBox。检出ListField,DataField和KeyField属性。

Try the TDBLookupComboBox. Check out the ListField, DataField and KeyField properties.

这篇关于是否有与ItemIndex对应的TDBComboBox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆