Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On error
Message
De
21/03/2003 15:53:23
 
 
À
21/03/2003 15:36:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00768753
Message ID:
00768774
Vues:
21
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform