Topic: active form

hello friends...
i created a timer for different queries and i want to execute my queries when form1 is active...
when form2 or other forms opened. query don't run...

Re: active form

Hi,
What event do you have  your timer linked to?
Try putting the code to create the timer between the final 'begin - end' and it should run no matter what form you are on (please see attached for a bare-bones example).
Derek.

Post's attachments

Attachment icon timedevents.zip 336.9 kb, 192 downloads since 2022-06-20 

Re: active form

Thank you

Re: active form

its was

If (screen.activeForm = Form1) then // If first fom1 is active
begin
          //Script fot timer
end;