DBLookupComboBox 打开数据集后,指定默认值。

1. 在数据集已经打开的情况下才使用DBLookupComboBox1.ListFieldIndex:=0的。

2.listfieldindex是你的DBLookupComboBox1在列出的字段中选择一个作为索引。比如你列了2个,0就是将第一个作为索引。
真正实现默认值是:       DBLookupComboBox1.KeyValue:=你自己的值;

3.dblookupcombobox1.KeyValue:=ADOquery1.fieldbyname( 'username ').AsVariant;

原文地址:https://www.cnblogs.com/yoogoo/p/2524528.html