Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GOTO end of procedure...
Message
De
22/05/1997 19:58:02
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
À
22/05/1997 13:45:56
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00033300
Message ID:
00033353
Vues:
41
>>If there any way in VFP 5.0 to have an error trapped in an Error Event abort the procedure that was interrupted. For example, I have a long procedure running that processes a phone call. If the caller hangs up, an Error event is triggered. I would like the IncomingCall method to abort at that point (but not the whole app/form). My only other option is to check on every 5 lines if an error was triggered, and RETURN if so.
>> Any suggestions? Thanks!
>
>
>RETURN TO (SYS(16,3)) from your error handler will return control to the program/procedure that called the procedure that fired the error. (2 steps back)
>
>HTH
You can also RETURN TO procedurename, or RETURN TO MASTER
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform