Fórum sintaxe #134932
15/04/2010
0
var a,b,c,d,e,f,g,h:Integer; begin
inherited; a:=1 or 50; b:=51 or 100;
c:=101 or 200;
d:=201 or 300;
e:=301 or 400; ----> ESTÁ ERRADO AQUI COMO A VARIÁVEL RECEBE... EXEMPLO: A:= DE 1 A 50; B:=DE 51 A 100
f:=401 or 500;
g:=501 or 600;---> qual uso para Exemplo a:=de 1 a 50;
h:=601 or 750;
for a:=1 to 50 do
if Dm.ReqCAPATC.Value=a then
begin
Dm.ReqCAPVALOR_TX.Value:= 2*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(b) then
begin
Dm.ReqCAPVALOR_TX.Value:= 3*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(c) then
begin
Dm.ReqCAPVALOR_TX.Value:= 4*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(d) then
begin
Dm.ReqCAPVALOR_TX.Value:= 5*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(e) then
begin
Dm.ReqCAPVALOR_TX.Value:= 6*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(f) then
begin
Dm.ReqCAPVALOR_TX.Value:= 7*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(g) then
begin
Dm.ReqCAPVALOR_TX.Value:= 8*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(h) then
begin
Dm.ReqCAPVALOR_TX.Value:= 9*Dm.ReqCAPUFR.Value;
end
else
if EdtTaxa.Text>'750' then
begin
Dm.ReqCAPVALOR_TX.Value:= Dm.ReqCAPUFR.Value*dm.ReqCAPATC.Value*0.02;
end;]
Benilton
Curtir tópico
+ 0Posts
15/04/2010
Ricardo Araujo
colega não conseguir entender o que esta querendo pode detalhar mais?
msn: rbbarreto@hotmail.com
Gostei + 0
15/04/2010
Benilton
var a,b,c,d,e,f,g,h:Integer; begin
inherited; a:=1 or 50; b:=51 or 100;
c:=101 or 200;
d:=201 or 300;
e:=301 or 400; ----> ESTÁ ERRADO AQUI COMO A VARIÁVEL RECEBE... EXEMPLO: A:= DE 1 A 50; B:=DE 51 A 100
f:=401 or 500;
g:=501 or 600;---> qual uso para Exemplo a:=de 1 a 50;
h:=601 or 750;
for a:=1 to 50 do
if Dm.ReqCAPATC.Value=a then
begin
Dm.ReqCAPVALOR_TX.Value:= 2*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(b) then
begin
Dm.ReqCAPVALOR_TX.Value:= 3*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(c) then
begin
Dm.ReqCAPVALOR_TX.Value:= 4*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(d) then
begin
Dm.ReqCAPVALOR_TX.Value:= 5*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(e) then
begin
Dm.ReqCAPVALOR_TX.Value:= 6*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(f) then
begin
Dm.ReqCAPVALOR_TX.Value:= 7*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(g) then
begin
Dm.ReqCAPVALOR_TX.Value:= 8*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(h) then
begin
Dm.ReqCAPVALOR_TX.Value:= 9*Dm.ReqCAPUFR.Value;
end
else
if EdtTaxa.Text>'750' then
begin
Dm.ReqCAPVALOR_TX.Value:= Dm.ReqCAPUFR.Value*dm.ReqCAPATC.Value*0.02;
end;]
Gostei + 0
15/04/2010
Benilton
var a,b,c,d,e,f,g,h:Integer; begin
inherited; a:=1 or 50; b:=51 or 100;
c:=101 or 200;
d:=201 or 300;
e:=301 or 400; ----> ESTÁ ERRADO AQUI COMO A VARIÁVEL RECEBE... EXEMPLO: A:= DE 1 A 50; B:=DE 51 A 100
f:=401 or 500;
g:=501 or 600;---> qual uso para Exemplo a:=de 1 a 50;
h:=601 or 750;
for a:=1 to 50 do
if Dm.ReqCAPATC.Value=a then
begin
Dm.ReqCAPVALOR_TX.Value:= 2*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(b) then
begin
Dm.ReqCAPVALOR_TX.Value:= 3*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(c) then
begin
Dm.ReqCAPVALOR_TX.Value:= 4*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(d) then
begin
Dm.ReqCAPVALOR_TX.Value:= 5*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(e) then
begin
Dm.ReqCAPVALOR_TX.Value:= 6*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(f) then
begin
Dm.ReqCAPVALOR_TX.Value:= 7*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(g) then
begin
Dm.ReqCAPVALOR_TX.Value:= 8*Dm.ReqCAPUFR.Value;
end; if EdtTaxa.Text=IntToStr(h) then
begin
Dm.ReqCAPVALOR_TX.Value:= 9*Dm.ReqCAPUFR.Value;
end
else
if EdtTaxa.Text>'750' then
begin
Dm.ReqCAPVALOR_TX.Value:= Dm.ReqCAPUFR.Value*dm.ReqCAPATC.Value*0.02;
end;]
Gostei + 0