Fórum Fazer While em Consulta #215377
19/02/2004
0
Tenho em minha consulta asa seguintes informações:
Resposta_____Quant.
Regular______03
Bom_________05
Ótimo________03
Como faço para somar as quantidades e colocá-las em um Label usando o comando While?
Grato,
Ilano.
Ilanocf
Curtir tópico
+ 0Posts
19/02/2004
Maicongabriel
var
iRegular, iBom, iOtimo : Integer;
begin
while not {...} do
begin
iBom := iBom + {...} ;
iOtimo := iOtimo + {...} ;
iRegular := iRegular + {...} ;
end;
Label1.Caption := IntToStr(iBom);
Label2.Caption := IntToStr(iOtimo);
Label3.Caption := IntToStr(iRegular);
end;Isso ? [i:c5ab6c036d]Isso é tudo, já que nenhuma outra informação foi passada...[/i:c5ab6c036d]
Gostei + 0
19/02/2004
Ilanocf
Gostei + 0
19/02/2004
Ilanocf
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)