Avoid internal ADS Error message (dialog)

Avoid internal ADS Error message (dialog)

Postby Marcelo Via Giglio » Fri Apr 17, 2009 3:41 pm

Hello,

I use traditional navigation access (like any RDD) to ADT files and SQL with RDDADS, when I have some error in SQL operation
a dialog error is showed, are there some seting to avoid it?

Rergards

Marcelo
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: Avoid internal ADS Error message (dialog)

Postby nageswaragunupudi » Fri Apr 17, 2009 7:17 pm

I suggest you use TRY .. CATCH .. END.
When an error occurs you can retrieve the error with ADS functions and deal with the error accordingly.

For SQL statments, I stongly suggest you first try executing manually in Arc32 and only when the SQL runs there without errors you should incorporate in your code.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Avoid internal ADS Error message (dialog)

Postby Marcelo Via Giglio » Fri Apr 17, 2009 7:40 pm

Hello,

thanks for response, I don't have problems with SQL sentences (sintax ,etc), e.g. if you try to delete some record DELETE FROM table WHERE column=data
if some row on the table are locking for other user you have an error from ADS not from xHabour, the TRY CATCH not work for this situation the ADS error dialog
will be present in the screen

regards

Marcelo

nageswaragunupudi wrote:I suggest you use TRY .. CATCH .. END.
When an error occurs you can retrieve the error with ADS functions and deal with the error accordingly.

For SQL statments, I stongly suggest you first try executing manually in Arc32 and only when the SQL runs there without errors you should incorporate in your code.
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 85 guests