Fórum nao compila erro na conversão #297243
27/09/2005
0
nao estou conseguindo fazer a devida conversão nessa expressão
QRLabel12.Caption := (QryEmitida.FieldByName(´TOTAL_EMIT´).Value / ((QRLblTotPenDev.Caption) * 100 ));
Aperece a seguinte menssagem
[Error] S015OpRelatorioArEmitidas.pas(204): Incompatible types: ´String´ and ´Integer´
desde já obg pela atenção de todos aki no forum.
Alexespina
Curtir tópico
+ 0Posts
27/09/2005
Rjun
QRLabel12.Caption := FormatFloat(´#0.00´, QryEmitida.FieldByName(´TOTAL_EMIT´).Value / StrToInt(QRLblTotPenDev.Caption) * 100;
Gostei + 0
27/09/2005
Alexespina
valeu mesmo :D
Gostei + 0
27/09/2005
Emerson Nascimento
QRLabel12.Caption := FormatFloat(´#0.00´, QryEmitida.FieldByName(´TOTAL_EMIT´).Value / StrToInt(QRLblTotPenDev.Caption) * 100;
faltou fechar o parênteses:
QRLabel12.Caption := FormatFloat(´0.00´, QryEmitida.FieldByName(´TOTAL_EMIT´).AsFloat / StrToIntDef(QRLblTotPenDev.Caption,1) * 100);
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)