Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On error
Message
From
21/03/2003 15:53:23
 
 
To
21/03/2003 15:36:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00768753
Message ID:
00768774
Views:
22
>>>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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform