Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Jul 17, 2019 7:21 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Error checking when saving/writing to a database?
PostPosted: Wed Mar 31, 2010 11:08 pm 
Offline

Joined: Mon May 08, 2006 8:50 pm
Posts: 780
Just curious as to what others do. I haven't included any error checking when saving data to existing records or writing to new records. All works fine but if I plan to build a multi-client project working with a server should I include error checking?

I've always "assumed" that RB would handle any record locks..etc when writing to a database.

Of course I do have code to test if a connection has been accomplished but other than that I don't know if there is a need to do error checking each time the program writes to the database.

Am I wrong in my assumption?


Top
 Profile  
Reply with quote  
 Post subject: Re: Error checking when saving/writing to a database?
PostPosted: Tue Apr 06, 2010 7:59 am 
Offline
Site Admin
User avatar

Joined: Fri Sep 30, 2005 9:35 am
Posts: 987
Location: South Portland, Maine
You should always check the Database.Error property after every database command, regardless of whether or not you are using a server.

_________________
Paul Lefebvre
Developer Evangelist
Xojo, Inc.


Top
 Profile  
Reply with quote  
 Post subject: Re: Error checking when saving/writing to a database?
PostPosted: Tue Apr 06, 2010 8:11 am 
Offline

Joined: Mon May 08, 2006 8:50 pm
Posts: 780
Thank Paul.....

Thanks to you and others I've learned that error checking is essential. :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group