Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 12.3 ('lJLaL')
Instant purchase and download via GumRoad!

COLUMN

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 Run and it also has a method named Run that 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 Run


Create a subsclass and implement Run

...End of Excerpt. Please purchase the magazine to read the full article.