Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 How to detect a table in use by views
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00948339
Message ID:
00948886
Views:
14
Hi,

Forgot to CC you for message #948882 Cetin is right, I haven't checked this function for a long time, it has several problems.

The Error method of class or form has precedance over ON ERROR routine, that's why there should be a hook in that method.

>Hi
>
>>That's why you need an error trapping procedure. That's basically the only way to find, if the table could be opened excusively or not.
>
>I just gave your code a try but it seems that the class/form takes the error responsibility so the following line raises an error in the CodeBook framework rather than the error number being assigned to lnErr=ERROR()
>
> USE (m.tcTable) AGAIN &tcMode IN 0 ALIAS (m.tcAlias)
>
>Please advise, how can I let your function handle the error rather than passing it up he heirarchy?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform