Re: Running a procedure every x seconds

From: Wouter de Kort (wouter_dk_NO_SPAM_at_hotmail.com)
Date: 12/27/04


Date: Mon, 27 Dec 2004 17:10:07 +0100


"Simon" <email@isonthewebsite.com> schreef in bericht
news:9bKdnWKV7Y1OrE3cRVnysg@eclipse.net.uk...
> Hi,
>
> I'm new to Delphi, so forgive me for the "noob" posting.
>
> I have an application that reads an XML page from the web and saves the
> data
> to a text file. At the moment this process is triggered manually from a
> button press - what I want to do is remove the button and instead have
> this
> process happen every 30seconds from when the application is launched.
>
> What's the best way of doing this?
>

You could have a look at the Timer component :) You can set an interval and
each time the interval passes it will trigger an event.

Good luck!

Wouter