>>>if i see this right it seem that you can not reassign the 'on error' command within an error trap routine - is this correct? is there a solution in Vfp6 to this?
>>
>>Not that I know of. Why would you need an error trap in an error trap? That code should be perfect! ;)
>
>well, i tried my new "ASESSIONS()" and it works perfect. but, since i call this function from my error trap - which was called from an on error command, there would be a nested on error. it looks like vfp at that time ignores any reassignment of the on error. therefor, the command 'set datasession to #' in the ASESSIONS() does not trigger a new error. so i am fresh out of luck here.
Oh, I see. That does present a bit of dilema. Have you tried putting your looping code for the sessions in an object and using that objects Error event to set a flag? That has a chance of working, but I haven't tried it.