Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GOTO end of procedure...
Message
De
23/05/1997 09:10:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
22/05/1997 13:33:15
Gino Miceli
Lan Professionals, Inc.
Bay Shore, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00033300
Message ID:
00033392
Vues:
43
> 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! Use this to find the name of the routine which called the caller. In the last line, i is the WhoCalls routine, i-1 denotes the error routine itself, i-2 the phantom "on..." routine, i-3 the caller, and i-4 the caller's caller. Proc WhoCalls Local i For i=1 To 32 if prog()=Prog(i) exit Endif Endf retu iif(i>1,sys(16,i-4),"! command window") In the error routine you use something like this: _whocalled=whocalls() return to (_whocalled)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform