ConsoleApplication.SleepCurrentThread
From Xojo Documentation
Method
ConsoleApplication.SleepCurrentThread(milliseconds As Integer)
New in 2016r3
Supported for all project types and targets.
New in 2016r3
Supported for all project types and targets.
Sleeps the current thread for the specified number of milliseconds. It can be used for any thread.
Notes
Calling this in a web application from any event of WebSession, WebControl or any WebControl subclass will raise an exception. If you're trying to update the browser, call UpdateBrowser instead.
Sample Code
Sleep for 1 second:
SleepCurrentThread(1000)