Time em Label...

Delphi

31/03/2003

como colocar um timer e fazer a hora funcionar em um label??

valeu...


Anonymous

Anonymous

Curtidas 0

Respostas

Okama

Okama

31/03/2003

No evento ontimer:


Label1.Caption := FormatDateTime(´hh:mm:ss´, Now);


GOSTEI 0
Anonymous

Anonymous

31/03/2003

No evento ontimer: Label1.Caption := FormatDateTime(´hh:mm:ss´, Now);



e para a data?


GOSTEI 0
Okama

Okama

31/03/2003

substitua o formato:

Label1.Caption := FormatDateTime(´dd/mm/yyyy´, Now);


GOSTEI 0
Marcelo

Marcelo

31/03/2003

como colocar um timer e fazer a hora funcionar em um label?? valeu...



Vove pode fazer assim tambem:

Label1.Caption:=DateToStr(Date);
ou
Label1.Caption:=DateToStr(Now);

Valeu?
At+...


GOSTEI 0
POSTAR