Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This is a weird one...
Message
From
28/07/1998 13:16:43
 
 
To
28/07/1998 12:07:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00122007
Message ID:
00122033
Views:
15
Kevin ---

I don't think your problem has anything to do with your type of error-trapping. With that error "Structural CDX not found", the default options are Ignore and Cancel. If you Ignore, VFP "forgets" that the table ever had a CDX and all tags are gone. That table will not cause the error to reoccur (unless new index tags are added). So, unlike most other errors, hitting Ignore actually does something: It wipes out the reference to the CDX and the table will not error again. The resolution involves "hard trapping" of that error --- either force a rebuild of the CDX -or- cancel the table opening.



>Ok, I'm totally baffled. I've just written a small error handler routine that is real simple.
>
>ON ERROR DO FORM ErrHand with message(),program(),lineno()
>
>My form then displays the error and does a controlled shutdown of all tables or gives the user the ability to ignore the error if it is minor (Printer not ready, etc.). Pretty standard stuff. The only problem is that when I invoke ON ERROR DO FORM I get an error that does not occur with just ON ERROR. This happens when I try to use a table that does not have an attached CDX. I get an error 'Structural CDX Not Found'. This error DOES NOT occur if I just have ON ERROR as the default. Am I missing something here?
>
>I understand that the error event is another option but I have multiple forms and I don't really want to add a custom event handler to my base class unless that is my only option.
>
>AHWBGA!
>TIA!
>
>Kevin
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform