Somando campos com porcentagem
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
Curtidas 0
Respostas
Wallacest
05/12/2003
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)
GOSTEI 0
Yankleber
05/12/2003
Você não pode somar um valor absoluto com uma porcentagem.
Isso é conceitualmente incorreto...
Isso é conceitualmente incorreto...
GOSTEI 0