Telegram_2023-05-26T18

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2023 > 05 > 26 >

Telegram_2023-05-26T18

Telegram link

 

2023-05-26T18:02:36

 

Timer relies on windows messages that won't work in IW apps.

 

If you need to run some task periodically inside your IW app, TIWTimedThread is your friend. Unit IW.Common.Threads

 

type

 

TMyThread = class(TIWTimedThread)

 

protected

 

procedure DoExecute; override;

 

end;

 

procedure TMyThread.DoExecute;

 

begin

 

// do your stuff here

 

end;

 

var

 

MyThread: TMyThread;

 

begin

 

MyThread := TMyThread.Create('Give any name to it', Interval_in_miliseconds);

 

MyThread.Resume;

 

end

 


 

Telegram link

 

2023-05-26T18:45:27

 

Interesting. I was gonna use tiwtimer

 


 

Telegram link

 

2023-05-26T18:46:02

 

TIWTimer is a web page only timer. It won't work in the server controller either