我在程序中动态地将一些可选值加到了一个dbcombobox中的items中后,我想将某一个值选定,并插入到数据库中。
我用了:dbcombobox1.text:=adoquery1.fieldybyname('id').asstring;
但是最后插入到数据库的却始终是空值。
怎么实现上述功能呢?