Fórum erro com zeus 7.2.6 e delphi 10.3 #608042
10/02/2020
0
Quando executo dentro de um laço o comando:
if table1.fieldbyname('hfabr').asfloat > 0 then table2.FieldByName('avanc_horas').asfloat := (table1.fieldbyname('horasfab').asfloat/table1.fieldbyname('hfabr').asfloat)*100;
este me apresenta o erro:
Project teste.exe raised exception class EZSQLException with message ‘0 record updated. Only one record should have been updated
Para contornar tive que usar componentes dbedit:
if table1.fieldbyname('hfabr').asfloat > 0 then dbedit17.text := floattostr((strtofloat(dbedit16.text)/strtofloat(dbedit15.text))*100);
Aguém teria uma ideia do que poderia ser?
if table1.fieldbyname('hfabr').asfloat > 0 then table2.FieldByName('avanc_horas').asfloat := (table1.fieldbyname('horasfab').asfloat/table1.fieldbyname('hfabr').asfloat)*100;
este me apresenta o erro:
Project teste.exe raised exception class EZSQLException with message ‘0 record updated. Only one record should have been updated
Para contornar tive que usar componentes dbedit:
if table1.fieldbyname('hfabr').asfloat > 0 then dbedit17.text := floattostr((strtofloat(dbedit16.text)/strtofloat(dbedit15.text))*100);
Aguém teria uma ideia do que poderia ser?
Jose Lima
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)