Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error not trapped inside TRY/CATCH block
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Error not trapped inside TRY/CATCH block
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01050338
Message ID:
01050338
Views:
63
We have a command line utility whose main PRG calls everything inside of a TRY/CATCH block. The CATCH clause would take any error and dump the info to a file, so as to avoid any popup interactive error dialogs. However, we've run into a problem where a dialog still pops up.

Given the user's passed parameter, the utility will open up a hidden form to execute some of its methods. If the user's database is not in sync with the form's data environment (e.g. table isn't in database because they haven't updated their data structures), then the Locate Database dialog pops up stating that there was an error instantiating the cursor object. If this is all inside of a TRY/CATCH block, then why isn't this error being trapped like all the others?

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Next
Reply
Map
View

Click here to load this message in the networking platform