Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lots of errors in exe
Message
From
24/01/2008 00:59:23
 
 
To
23/01/2008 23:29:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01284845
Message ID:
01284850
Views:
19
>One day, I decided to use ON ERROR in my Network's VFP .exe. I got lots of errors that were ignored (by the exe) and the users were able to proceed unaware that there was a problem. Does VFP hide some errors from the screen, things like "dbf not found" and "dbf has no index set"??
>
>Kinda worries me. Test it yourself on one of your exe's!!

There are 3 possible forms of ON ERROR:

1. ON ERROR < do a valid command, function or procedure call >
2. ON ERROR
3. ON ERROR *

#1 turns on an error handler which you've written yourself
#2 turns off your custom error handler and returns to the default VFP error handler
#3 tells VFP to do nothing in the event of an error (i.e. don't use the default VFP handler, and don't use any custom one either)

Maybe what you were seeing is the effect of a #3 call rather than a #2 call? If so it can be dangerous and should be used sparingly, if at all.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform