>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