Fórum Socorro Nao sei mais o que fazer... #153485
09/04/2003
0
Por favor de alguma sugestao;
procedure TFormFechDiario.BtGravarClick(Sender: TObject);
var
Tot_Passa,RolIni,RolFin,PC,PE,PI : integer;
Caixa,TR,Arr,V_Tarifa,Diferenca:real;
Begin
V_Tarifa:=TabelaTarifaColetivo.AsFloat;
RolIni:= strtoint(dbedit3.text);
RolFin:= strtoint(dbedit4.text);
PC := strtoint(dbedit5.text);
PE := strtoint(dbedit6.text);
PI := strtoint(dbedit7.text);
TR := strtofloat(dbedit8.text);
Arr := strtofloat(dbedit9.text);
Tot_Passa:= (Rolfin-RolIni);
Caixa := ((Tot_Passa-PC-PE-PI)* V_Tarifa)-TR;
LabelCaixa.Caption := floattostr(caixa);
LabelTotal.Caption := inttostr(tot_passa);
LabelTarifa.Caption := floattostr(V_Tarifa);
//TabelaCircularTot_passa.AsInteger:=(Tot_Passa);
//TabelaCircularCaixa.AsInteger:=(caixa);
//TabelaCircular.edit;
//TabelaCircular.post;
//BtGravar.Enabled:=False;
//BtCancelar.Enabled:=false;
//BtNovo.Enabled:=true;
//DESATIVARDBEDIT(FormFechDiario);
//SHOWMESSAGE(´Registro Gravado com sucesso´);
end;
end;
Marcelototini
Curtir tópico
+ 0Posts
09/04/2003
Excon
Favor explicar o que está acontecendo.
Gostei + 0
09/04/2003
Anonymous
e pro favor coloque textos explicativos no titulo
T+
Gostei + 0
09/04/2003
Marcelototini
e pro favor coloque textos explicativos no titulo
T+[/quote:c42fd64139]
Não da erro executa normal, mas nao pega o valor da tarifa da outra tabela para miltiplicar ele traz o valor 0 e a multiplicaçao da zero.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)