Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   lblTime.caption := PChar(ProgressBar1.step) Problema Ayuda! (https://www.clubdelphi.com/foros/showthread.php?t=64271)

Gattaca 25-03-2009 05:17:30

lblTime.caption := PChar(ProgressBar1.step) Problema Ayuda!
 
Hola a todos, veran tengo un problema con este codigo:

Código Delphi [-]
procedure TForm1.Timer1Timer(Sender: TObject);
begin
lblTime.Caption := PChar(progressbar1.Step);
progressbar1.StepBy(1);
end;

Al tratar de ejecutar la aplicasion delphi me tira un error...
Alguien sabe como solucionarlo?

dec 25-03-2009 06:14:43

Hola,

En este caso deberías usar la función "IntToStr()":

Código Delphi [-]
procedure TForm1.Timer1Timer(Sender: TObject);
begin
  lblTime.Caption := IntToStr(progressbar1.Step);
  progressbar1.StepBy(1);
end;


La franja horaria es GMT +2. Ahora son las 19:44:54.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi