Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: ADIR can return a malformed size
Message
From
23/10/2010 18:16:28
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01486708
Message ID:
01486737
Views:
65
>>Into a file scanning ADIR,
>>VFP returns correct file size values,
>>but CEILING,INT returns bad numbers
>>
>>
>>? xFile[m.k,2],ROUND(xFile[m.k,2],0),CEILING(xFile[m.k,2]),INT(xFile[m.k,2])
>>
>>
>
>How did you get so many zeros after decimal point?
>Here's my result
>
>4293918720.000000000000               4293918720           4293918720              4293918720
>
In my pc I have these values!

Some have less or more zeroes, even 30 zeros,
INT and CEILING for these work properly.
I only put the wrong ones.

We should look into the underlying C code.
Probably some parameter of a Windows API is large and
VFP does not properly check
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform