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


Automatic Transaction Rollback

Leverage REALbasic Memory Management

Issue: 5.2 (January/February 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): 6,712
Starting Page Number: 37
Article Number: 5214
Related Web Link(s):


Excerpt of article text...

Database transactions require a lot of error-checking code. However, we can take advantage of memory management in REALbasic to simplify error-checking and make it more robust.

Here is a typical example block of database transaction code.

Sub PerformExampleTransaction(db as Database)

db.SQLExecute "INSERT INTO table1 ('foo')

if db.Error then

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