Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A Simple Way to Get a List of Files?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00215025
Message ID:
00215027
Vues:
28
Michael,

Take a look at the afiles() function:

dimension aTextFiles(1)
nNumOfFiles = adir('aTextFiles','*.txt')


>Greetings!
>
>I may be missing something, but I cannot determine how to retrieve a list of files of a given type, such as "*.dat". Visual Basic has its DIR$() function, which retrieves the first or next file of a given series, depending on a supplied parameter.
>
>Aside from commands like DIR in VFP, is there a method or function to load a list of files from a directory into, say, an array, without the need of doing fancy parsing of a redirected output file?
>
>Thanks!
>
>Michael Reynolds
kenweber
GCom2 Solutions
Microsoft Certified Professional

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform