Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: ADIR can return a malformed size
Message
De
23/10/2010 18:16:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01486708
Message ID:
01486737
Vues:
64
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform