if combobox1.itemindex=0
begin
table.first
for i:=0 to table.recordcount-1 do
begin
combox2.items.add(table.fields['订单日期'].value.asstring);
table.next;
end;
end
else if combox1.itemindex=1
和上面差不多以上可能有些table属性不对,思想就是这个,在combox1的change事件中写
begin
table.first
for i:=0 to table.recordcount-1 do
begin
combox2.items.add(table.fields['订单日期'].value.asstring);
table.next;
end;
end
else if combox1.itemindex=1
和上面差不多以上可能有些table属性不对,思想就是这个,在combox1的change事件中写
比如:'订单日期' 是 datetime类型,则combobox2中就显示 'datetime'
谢谢,欢迎讨论