Subject | Re: [IBO] Insert problem... |
---|---|
Author | Luiz Alves |
Post date | 2002-01-18T17:30:33Z |
You continue not using static references to the columns as:
You could to do:
var tbcartao:tib_column;
....
...
if not ibDsqlEcon3v.Prepared then
ibDsqlEcon3v.Prepare;
tbcartao:=ibDsqlEcon3v.parambyname('cartao');
....
While not tbEconv3.Eof do begin
tbcartao.asInteger := tbEconv3.fieldbyname('cartao').asInteger;
/*if you can use also static references to
tbEconv3.fieldbyname('cartao')*/
....
ibDsqlEcon3v.ExecSQL;
...
...
end;
...
...
Luiz.
> ibDsqlEcon3v.parambyname('cartao').asInteger :=tbEconv3.fieldbyname('cartao').asInteger;
You could to do:
var tbcartao:tib_column;
....
...
if not ibDsqlEcon3v.Prepared then
ibDsqlEcon3v.Prepare;
tbcartao:=ibDsqlEcon3v.parambyname('cartao');
....
While not tbEconv3.Eof do begin
tbcartao.asInteger := tbEconv3.fieldbyname('cartao').asInteger;
/*if you can use also static references to
tbEconv3.fieldbyname('cartao')*/
....
ibDsqlEcon3v.ExecSQL;
...
...
end;
...
...
Luiz.