Have a look at the PROGRAM() function.
>>Three parameters are passed to the Error event of an object. The second parameter is cMethod, the method the error occurred in. You can trap for this and log it for reference.
>
>Which would be obvious if i wanted to put error routines on every one of 300+ controls, but i'm trying to use a global On Error routine. If it can pinpoint where the error occurred, it'll be more useful. If that's not simple to do, i'll just take a snapshot of the machine's current state (variables, DBF()s, etc.) and Sherlock what caused the error. (much the way physicists 'discover' sub-atomic particles)
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.