Somando campos com porcentagem
05/12/2003
0
QUERO MOSTRAR NUM EDIT3 A SOMA DE UM VALOR NO EDIT1 E NO EDIT2
EX:
EDIT1 = 250
EDIT2 = 80 (EM ¬)
EDIT 3 = A SOMA DOS VALORES
EX:
EDIT1 = 250
EDIT2 = 80 (EM ¬)
EDIT 3 = A SOMA DOS VALORES
Njunior
Curtir tópico
+ 0
Responder
Posts
05/12/2003
Wallacest
VAR A, B,C : Integer;
begin
A := StrToInt (Edit1.text)
B := (StrToInt (Edit2.text)) * (A/100)
C:= (A+ B)
Edit3.text := IntToStr (C)
begin
A := StrToInt (Edit1.text)
B := (StrToInt (Edit2.text)) * (A/100)
C:= (A+ B)
Edit3.text := IntToStr (C)
Responder
06/12/2003
Yankleber
Você não pode somar um valor absoluto com uma porcentagem.
Isso é conceitualmente incorreto...
Isso é conceitualmente incorreto...
Responder
Clique aqui para fazer login e interagir na Comunidade :)