如何将DBLookupListBox 的内容全部"映射" 至Listbox? (5分)

  • 主题发起人 lordofbinladen
  • 开始时间
L

lordofbinladen

Unregistered / Unconfirmed
GUEST, unregistred user!
如何将DBLookupListBox 的内容全部"映射" 至Listbox?
 
listbox.Items.AddStrings(dblookuplistbox.Items );
 
listbox.Items.AddStrings(dblookuplistbox.Items );不行的
问题不简单,可以换个方式
我想想
 
assign方法
 
若改用Treeview 又该如何?
 
那可不可以考虑用笨办法。如下:dbLookupListBox1显示了一个表的Company字段
with dbLookupListBox1.ListSource.DataSet do
begin
First;
while not Eof do
begin
ListBox1.Items.Add(FieldValues['Company']);
Next;
end;//while
end;//with
测试过了
 
TstringList = TstringList;
 

Similar threads

回复
0
查看
514
不得闲
回复
0
查看
810
不得闲
D
回复
0
查看
746
DelphiTeacher的专栏
D
S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
顶部