Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Stopuhr programmieren (https://www.delphipraxis.net/2778-stopuhr-programmieren.html)

Sertrain 19. Jan 2011 12:51

AW: Stopuhr programmieren
 
Ich danke dir.

Sertrain 19. Jan 2011 12:56

AW: Stopuhr programmieren
 
Code:
begin
 If (Button1.Caption = 'Start') then
  begin
   startzeit := GetTickCount;
   Button1.Caption := 'Stop';
   label1.Caption := 'Uhr läuft';
  end
 else
  begin
   endzeit := GetTickCount;
   label1.Caption := label1.Caption := Format('Die Stoppuhr lief %.2f s.',[(endzeit-startzeit) / 1000]);
   Button1.Caption := 'Start';
  end;
end;
und er sagt mir: "Inkompatible Typen: 'String' und 'procedure, untyped pointer or untyped parameter' ...

Und nun? =)

DeddyH 19. Jan 2011 12:57

AW: Stopuhr programmieren
 
Zitat:

Delphi-Quellcode:
label1.Caption := label1.Caption :=

Einmal zuviel ;)

Sertrain 19. Jan 2011 12:58

AW: Stopuhr programmieren
 
Huch .. ^^ wie peinlich :)


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:05 Uhr.
Seite 2 von 2     12   

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