User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 402,595 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,314 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums

[DELPHI] how to set event procedure runtime?

Join Date: Oct 2006
Posts: 3
Reputation: luis_ramos is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
luis_ramos luis_ramos is offline Offline
Newbie Poster

Re: [DELPHI] how to set event procedure runtime?

  #8  
May 26th, 2008
Meby this way...

var
Timer1: TTimer;

procedure TForm1.PROC(Sender: TObject);
begin .. end;

begin
Timer1 := TTimer.Create(NIL) ;
Timer1.Interval := 2000;
Timer1.OnTimer := PROC;
Timer1.Enabled := True;
end;
Reply With Quote  
All times are GMT -4. The time now is 11:57 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC