Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return to a specific method
Message
 
 
À
27/07/2006 15:50:59
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:
01140861
Vues:
13
>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?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform