W wisdomphg Unregistered / Unconfirmed GUEST, unregistred user! 2009-03-06 #1 listbox里面的数据怎么保存到sql表a(字段为aa.bb)
Z znxia Unregistered / Unconfirmed GUEST, unregistred user! 2009-03-06 #3 procedure TForm1.Button2Click(Sender: TObject);var i:Integer;begin Query1.Close; for i:=0 to ListBox1.Count-1 do begin Query1.SQL.Text:=format('Insert into 表A(aa) values (''%s'') ',[ListBox1.Items]); Query1.ExecSQL; end;end;
procedure TForm1.Button2Click(Sender: TObject);var i:Integer;begin Query1.Close; for i:=0 to ListBox1.Count-1 do begin Query1.SQL.Text:=format('Insert into 表A(aa) values (''%s'') ',[ListBox1.Items]); Query1.ExecSQL; end;end;
W wisdomphg Unregistered / Unconfirmed GUEST, unregistred user! 2009-03-06 #5 duxing,为什么我显示在listbox里面的数据没有网格