FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Avoid internal ADS Error message (dialog)
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Avoid internal ADS Error message (dialog)
Posted: Fri Apr 17, 2009 03: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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Avoid internal ADS Error message (dialog)
Posted: Fri Apr 17, 2009 07: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
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Avoid internal ADS Error message (dialog)
Posted: Fri Apr 17, 2009 07: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.

Continue the discussion