Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Trapping Error 114 VFP Message Instead
Message
From
04/02/2003 22:50:07
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problem Trapping Error 114 VFP Message Instead
Miscellaneous
Thread ID:
00749215
Message ID:
00749215
Views:
163
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
Map
View

Click here to load this message in the networking platform