Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric Overflow
Message
De
19/02/2015 19:49:35
 
 
À
19/02/2015 16:35:03
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01615591
Message ID:
01615614
Vues:
39
>>As a result of some processing I am getting a field with a value of ************* (numeric overflow)
>>
>>I'm not at all concerned (yet) with why this is happening (I'll fix that problem later).
>>
>>I want to do something like
>>REPLACE field1 WITH IIF(field2 is numberic overflow, value1, value2)
>>
>>What expression can I use to determine when field2 is at numeric overflow
>>
>>Thanks to all................Rich
>
>REPLACE field1 WITH IIF(field2 = 1/0, value1, value2)
Thanks Dragan.

I knew that divide by zero produced this error and I tried (at least I think I tried)
? myfield = 1/0 and kept getting false. Maybe it has something to do with the width of the field N(16).

I tried your solution in a small test and it worked so I'll look and see if it will work with my larger field.

FWIW I also found that
myField > 999999999999999999999999 also returns true for the overflow field.

As always, your help is appreciated.

.......Rich
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform