From Xojo Documentation
Called when the Timer interval is reached, based on the Mode and Period properties.
Timer code always runs in the main thread, shared with UI updates. A long-running process called by a Timer can make the UI unresponsive. In these situations, use a Thread instead.
This code updates an iOSProgressBar: