Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2.6 App on 98/NT/2000 - Bug in Round()?
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00440487
Message ID:
00441545
Views:
8
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform