General information
Category:
Coding, syntax & commands
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only