Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A File size function?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00040249
Message ID:
00040260
Vues:
29
>I'm stuck here re-coding some old foxpro stuff. It's been a while since I've written anything other then VFP programs. I'm about to go crazy :-P. Ok, can someone point me in the direction of a function that will return the size of a file? I could redirect the output of the foxpro dir command and parse it into an array or something, but I would really prefer to avoid ugly functions like that.

ADIR(ArrayName [, cFileSkeleton [, cAttribute]])

cAttribute:
Column Array contents Data type
1 File names Character
2 File sizes Numeric
3 Dates last modified Date
4 Times last modified Character
5 File attributes Character

ADIR(myarray, '*.BMP')

After you capture this info send it to a table that matches the array config.
For every bug fixed, there is a bigger bug not yet discovered.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform