Código Delphi
[-]procedure TEstadoForm.BitBtn1Click(Sender: TObject);
begin
ADOQuery1.Open;
Label1.Caption := 'Procesando ...';
ProgressBar1.Max := Adoquery1.RecordCount;
ADOQuery1.First;
While not(ADOQuery1.Eof) do
begin
...
Label1.Caption := 'Expediente ' + ADOQuery1Exp.AsString;
Label1.Update; ProgressBar1.StepIt; ...
ADOQuery1.Next;
end;
ProgressBar1.Position := ProgressBar1.Max;
Label1.Caption := 'Completado';
end;
Como ves uso un ProgressBar, ya que tiene el método StepIt y ahorramos la variable Prog.
Cita:
Alguien podría ayudarme !!!
Ledian
|
Espero que sí
Saludos