Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return to a specific method
Message
De
27/07/2006 16:02:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01140833
Message ID:
01140867
Vues:
16
Not clear what yo are saying though.
All I want is to get back to the begining of processing in case of falure.
Thre are many calls to other methods between that point and a point of the failure.
>>In my case I dont need to guess what object to get back to. I know that. I am not sure if it would have been 100% safe to jump back to that object from any failure in the program. That's my problem. It's going to be very hard to test something like this.
>
>If instead of direct sql you would use function like RunSQL, then you would know that your select failed and would act accordingly.
>
>Otherwise I don't see a simple way to proceed
>
>say:
>
>try
>  myobject does something
>  some select
>  another select
>  ...
>catch to loEx
>endtry
>
>if one of the select fails, you would be trown out of the original code sequence.
>
>Or what exactly are you talking about?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform