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 20 in printed book and digital formats -- plus a one-year subscription (beginning with 21.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!

Recent issues

Article Preview

Buy Now

Issue 6.1


Writing Debuggable Code

It's The Next Best Thing To Bug-Free Code

Issue: 6.1 (November/December 2007)
Author: Charles Yeomans
Author Bio: Charles is the author of "I Declare: Calling External Functions in REALbasic", available online at http://www.declareSub.com/
Article Description: No description available.
Article Length (in bytes): 8,133
Starting Page Number: 39
Article Number: 6116
Related Web Link(s):


Excerpt of article text...

You will not write bug-free code. But perhaps it's enough to write code that is easy to debug. Bugs are usually easy to fix when you can reproduce them and isolate them. In this issue's column, we look at some example code and rewrite it to be debuggable.

Let's consider the example of a window containing two edit fields StartDateField and EndDateField, and a listbox ReportListbox that holds the result of a database query returning all records in the specified date range. Here is some typical code for generating a report from such a query.

Sub BuildReport()

dim startDate as Date

if not ParseDate(StartDateField, startDate) then

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