Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Trapping Error 114 VFP Message Instead
Message
From
05/02/2003 01:17:14
 
 
To
04/02/2003 22:50:07
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00749215
Message ID:
00749244
Views:
22
Don, I am not sure but you could try SET NOTIFY OFF which disables some system messages and perhaps this one?


>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
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform