5,392
社区成员
发帖
与我相关
我的任务
分享
for i:=0 to listbox1.Items.Count-1 do begin
itemindex:=i;
edit;
if checklistbox1.Checked[i] then
FieldByName(listbox1.Items.Strings[i]).AsString:=checklistbox1.Items.Strings[i];
if checklistbox2.Checked[i] then
FieldByName(listbox1.Items.Strings[i]).AsString:=checklistbox2.Items.Strings[i];
if not ((checklistbox1.Checked[i]) and (checklistbox2.Checked[i])) then
FieldByName(listbox1.Items.Strings[i]).AsString:='';