Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Problem Trapping Error 114 VFP Message Instead
Good evening
My error trap is not catching 114. Instead the VFP message appears ("Index does not match table....")
Althought there is a lot of code in the visual class custom object, the part that traps errors in loMy is darn simple.
In loMy.OnError Event
LPARAMETERS nError, cMethod, nLine
THIS.inerrnum = nError
RETURN
In loMy.mymethod
ON ERROR THIS.Error()
In loMy.opentable (a branch from loMy.mymethod)
the vars looks like this:
lcDir = C:\mydir\"
lcFileName = "mytable.dbf"
USE (lcDir+lcFileName) IN 0 ALIAS mytablealias
The above sequence traps errors smoothly as tables are sequentially opened. On the next iteration the table alias is selected and closed before opening another; using the same alias.
Any ideas on how to stop the VFP Message from popping and traping the error number? Any input would be greatly appreciated.
Thanks
Don Lowrey
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement