S
su-100
Unregistered / Unconfirmed
GUEST, unregistred user!
使用rxlib2.75完成下列任务,出错:
memorytable已在form中建立,
memorytable.tablename:='memtable'';
with table1 do
begin
aa:=fieldbyname('dd').asinteger;
bb:=fieldbyname('cc').asstring;
....
while memorytable not eof do
begin
memorytable.insert;
memorytable.fieldbyname('q1').asinteger:=aa;
memorytable.fieldbyname('q2').asstring:=bb;
...
memorytable.post;
end;
next;
end;
query1.close;
query1.sql.clear;
query1.sql.add('insert inot ggg select * from memtable');
query1.execsql;
error!
next;
memorytable已在form中建立,
memorytable.tablename:='memtable'';
with table1 do
begin
aa:=fieldbyname('dd').asinteger;
bb:=fieldbyname('cc').asstring;
....
while memorytable not eof do
begin
memorytable.insert;
memorytable.fieldbyname('q1').asinteger:=aa;
memorytable.fieldbyname('q2').asstring:=bb;
...
memorytable.post;
end;
next;
end;
query1.close;
query1.sql.clear;
query1.sql.add('insert inot ggg select * from memtable');
query1.execsql;
error!
next;