Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Divide by Zero
Message
De
02/08/2002 11:10:09
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divide by Zero
Divers
Thread ID:
00685463
Message ID:
00685463
Vues:
107
Hi All

I have a strange division by zero problem. Normally a division by zero will result in **** or a normal VFP error message. However, I am trying to offer my users the ability to create their own formulas which can consist of calling VFP functions and my own functions. For instance they can enter a formula such as Func1() / Func2() which my program then Evaluates().

If this formula results in a division by zero then VFP just exits - totally, completely, no messages, no errors, nothing - gone. I cannot trap for it using the normal ON ERROR. The exe simply quits.

Any ideas how I can trap this?

TIA

Jos
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform