![]() |
form-OFFEN-TIME-berechnen
bitte nich lachen.. habs für alanblack gemacht ;) sonst verreckt er noch am nachdenken
:cheers:
Delphi-Quellcode:
unit Unit1;
interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private-Deklarationen } public { Public-Deklarationen } end; var Form1: TForm1; starttime: cardinal; implementation uses Unit2; {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin starttime := gettickcount; form2.showmodal; showmessage(inttostr(gettickcount-starttime)); end; end. |
Re: form-OFFEN-TIME-berechnen
Warum ist starttime global? Und noch dazu nicht mal eine Member-Variable der TFormklasse? :gruebel:
|
Re: form-OFFEN-TIME-berechnen
och hab ich vergessen lokal zu deklarieren.. dachte erst ich arbeite doch mit 2 units..
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:53 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-2025 by Thomas Breitkreuz