Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling ODBC Errors with CursorAdapter
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00797306
Message ID:
00797331
Vues:
22
I would do it too, but it doesn't work, TableUpdate() always return .T. in any update error. I test it by myself too... Here's Focus Magazine say's about it...

"As with the native CursorAdapter, most errors are trappable in the "traditional" way ? test the return value of TableUpdate and, in case of failure, use AError to determine the cause. Unfortunately, the detection of an update conflict is also a problem for the ODBC type CursorAdapter."

>You would handle it just like any other error when managing remote data.
lnRetVal = tableupdate()
if lnRetVal < 0
   aerror(laErrors)
   * error processing here
endif
>>I've read the Focus Article:
>>
>>http://www.code-magazine.com/focus/article.aspx?quickid=0301062&page=4
>>
>>But I don't like the solution showed in this issue, If CA can't handle ODBCs errors it's not a solution for me (and I think a lot more), I was thinking CA's a good concept, but not a solution for Universal connection if can't handle errors... I'd consider this issue as a Bug with an only-few-servers-Workaround.
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform