From Xojo Documentation

Revision as of 13:38, 4 March 2010 by SteffX (talk) (SMBot: new page by automated transformation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

ConsoleApplication.DoEvents([milliseconds as Integer])

Supported for all project types and targets.

Yields time back to REAL Studio so that it can handle other events.

The optional parameter specifies the amount of time you want the currently executing thread to sleep. If all threads are sleeping, then REAL Studio yields back time to the system. This allows you to write applications that don't use up to 100% of the CPU during tight loops.

Specifying zero milliseconds causes the next waiting thread to execute. A negative value specifies no sleep. The default is 10 milliseconds.