Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Stoppuhr formatieren? (https://www.delphipraxis.net/147410-stoppuhr-formatieren.html)

AlexII 7. Feb 2010 22:20


Stoppuhr formatieren?
 
Hallo,

ich habe folgende Stoppuhr die ich nicht so formatieren kann wie ich es will.

Delphi-Quellcode:
Label6.Caption := TimeToStr(Time - StartTimePlay);
so wird's angezeigt
Zitat:

00:00:00
ich möchte die erste Null weglassen, dass die Anzeige so aussieht
Zitat:

0:00:00
auch auf fremdsprachigen BS.

Hat jemand eine Idee? :gruebel:

AlexII 7. Feb 2010 22:30

Re: Stoppuhr formatieren?
 
Wow.. ich hab's :bouncing4:

Delphi-Quellcode:
Label6.Caption := FormatDateTime('h:nn:ss', Time - StartTimePlay);
Vllt wird das noch jemand brauchen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:51 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz