Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2.6 App on 98/NT/2000 - Bug in Round()?
Message
De
14/11/2000 09:17:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00440487
Message ID:
00441545
Vues:
15
>Al,
>
>A piece of one of the offending sections of code is below; it's just a simple round() call (thisV is a numeric value previously calculated from table fields):
>
>DO CASE
>CASE round(thisV,0) =< 250 && <<< application crashes right here
>glSize = "S"
>IF round(thisV,0)=0
>
>ENDIF
>
>When I replace the CASE line with the following...
>
>CASE thisV =< 250.49999
>

An alternative statement would be:

CASE INT(thisV + .5) < 250

>...then the application proceeds ok and does not crash. As I mentioned in my first message, on Win98 restarting the app after the crash (without rebooting) causes the app to work fine; it does not choke on the round() code again until after a reboot. But on Win2000 it continues choking on the round() code each time the app is started, regardless of whether a reboot was done.
>
>Again thanks in advance for your thoughts and comments.
>
>Regards,
>
>- Larry
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform