各位大哥 我用checklistbox时遇到点儿小问题 checklistbox中显示的是数据库中的若干条记录,每条记录都有好几个字段,怎样才能提取checklistbox中某条选中的记录中的字段? (checklistbox中 1,2,3,4 选项, 每个选项有L1,L2,L3,L4字段 怎样提取选中的1中的L2字段) 用.item只能提取选项,选项中的字段不会提取! 刚刚来到CSDN 没有多少分 各位大侠帮帮忙吧!
调试欢乐多
procedure TForm1.Button1Click(Sender: TObject);
begin
while not OraQuery1.Eof do
begin
checklistbox1.Items.Add(oraquery1.Fields[0].Value+' '+oraquery1.Fields[1].Value+' '+oraquery1.Fields[2].Value+' '+oraquery1.Fields[3].Value+' '+oraquery1.Fields[4].Value);
oraquery1.Next;
end;
end;