怎样把选中的radioButton插入到数据库,插入数据库出错,怎么解决,谢谢!
var
i:integer;
begin
for i :=0 to componentcount-1 do
if components is TradioButton then
if (components as TradioButton).Checked then
begin
adoquery1.Close;
adoquery1.sql.clear;
adoquery1.sql.add('insert into Test values(Components as TradioButton).name)');就是插入是出错,此行
adoquery1.ExecSQL;
end;
end;