ConsoleApplication.SleepCurrentThread

From Xojo Documentation

Method

ConsoleApplication.SleepCurrentThread(milliseconds As Integer)

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.

Sample Code

Sleep for 1 second:

SleepCurrentThread(1000)