Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: SYS(2020) Returning wrong values
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00798993
Message ID:
00799078
Views:
35
Hi George...
From VFPx Help: "DISKSPACE()Returns the number of bytes available on the default or specified disk drive or volume. "

Diskspace() doesn't help to know total HardDisk size. In every version of VFP is correct telling us the free space.
I already know how to workaround using Cetin's solution via API. I just want to get feedback if this is a BUG or not (may be a Magic SETTING I did'nt advice). So?, may be a new item in the Bug List? Or isn't necesary?




>>In spanish newsgroups someone remember us an unsolved (and introduced) BUG since VFP7.
>>
>>My HDD is 40 GB, 500 MBs free.
>>
>>?VAL(SYS(2020))/(1024*1024*1024)
>>
>>***************************************
>>*   VFP6-SP5  |  VFP7-SP1  |  VFP8    *
>>***************************************

>>*  37.2678 GB | 0.5415  GB |0.5415 GB *
>>*-------------------------------------*
>>
>>From the Help: "Returns the total size in bytes of the default disk."
>>So, we have unexpected values, between versions not documented in help.

>It's returning the amount of free space rather than total space. In 6.0 it returns the total. Use DISKSPACE() instead in 7 and 8.
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform