Application.SleepCurrentThread
From Xojo Documentation
Method
Application.SleepCurrentThread(Milliseconds as Integer)
New in 2005r1
Supported for all project types and targets.
New in 2005r1
Supported for all project types and targets.
Sleeps the current thread for the specified number of milliseconds. It can be used for any thread.