Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DIVIDE by ZERO (Where is the ERROR Message)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00823716
Message ID:
00823813
Vues:
35
>>Just wondered where the ERROR is.
>>Try this:
>>on error
>>a=12/0 &&I wondered if there was an error message for this
>>a=0/12 &&This is ok, and was ever
>>
>>Could somebody tell me why i dont get any error message. Tried this in VFP6SP5 and VFP7
>
>Unlike just about every other language, Fox going back to the FoxBASE days, has never
>treated division by zero as an error. It simply displays a series of asterisks as the result.

In other words, it overflows instead of erroring.
? $12/$0
on the other hand, errors.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform