Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR returns a negative number for filesize
Message
From
04/09/2004 18:06:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00939494
Message ID:
00939497
Views:
12
>Hi All,
>
>In the case of a file that's more than 2Gig, ADIR() returns a negative filesize. The size is 2.451.450.455 and adir() says it's -1843516841.
>
>Maybe there's an algorithm that I can use to convert that negative number? Or can I use some API call?

How about 4294967296 + claimed (negative) size? Using arithmetic addition, of course.

4294967296 is 2^32.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform