Xojo Threading Tips
Working with Threads in Xojo
Issue: 12.3 (May/June 2014)
Author: Seth Verrinder
Author Bio: Seth is a consultant who uses Xojo every day in his job at BKeeney Software, Inc.
Article Description: No description available.
Article Length (in bytes): 8,281
Starting Page Number: 70
Article Number: 12310
Related Link(s): None
Excerpt of article text...
Threads in Xojo are a way to run tasks in the background. Threads can execute while users interact with the program and the UI generally stays responsive.
Creating a Thread
To start a background thread, you first need an instance of
Thread. Thread has one event named
Runand it also has a method named
Runthat will fire the event. Any code that you put in the event handler will run in the background thread and, if you call functions or subroutines, those will also run in the thread.
To create a thread:
Place it a on a Window and add a handler for
Create a subsclass and implement
...End of Excerpt. Please purchase the magazine to read the full article.