Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: SYS(2020) Returning wrong values
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00798993
Message ID:
00799029
Vues:
28
>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.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform