Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON ERROR Macro Substitution
Message
 
À
03/06/2013 12:45:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP3
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01575512
Message ID:
01575534
Vues:
27
>>>>Hi Gang!
>>>>
>>>>question.... I have, in some old code, a routine that may or may not have an ON ERROR error handler activated when starting the code.
>>>>
>>>>Any way to save what the rest of the ON ERROR part is, to a variable, at that point? Any function that tells what the ON ERROR part is?
>>>>
>>>>Then, I can change the ON ERROR handler to be what I want it to be and run my new code....
>>>>
>>>>And if the user changes their mind and exits the routine without running my new part, it can restore back whatever the ON ERROR was to begin with, just like nothing has happened.
>>>>
>>>>Thanks!
>>>
>>>
>>>Something like (and my VFP is mighty rusty)..
>>>
>>>OldError = ON("Error")
>>>
>>>on error ....
>>>
>>>on error &OldError
>>
>>Thanks a bunch!
>
>I just want to add that almost all ON and SET items in VFP can be queried using ON() and SET() respectively.
>
>Tamar

Thanks a bunch!
Tommy Tillman A+ NetWork+ MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform