Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR and getting multiple file extensions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01222395
Message ID:
01222618
Vues:
17
>If I wanted to get multiple file extensions, such as ".001", ".002" and so on up to maybe ".199" into the ADIR() array, how would I pick that up?
>
>The below is how it is now, but you may see that that limits me to only 99 different file extensions. Yes, this is really a naming convention for these Graphics files.
>
>
>cFiles=cJPGCode + ".0*"	&& Example: "BM00&)TZ.001"
>* Get the number of IMAGE files for this person.
>* Place each filename into an array.
>nNumberOfImageFiles=ADIR(aFileName, cFiles)
>
Hi Cecil
Chk Download#25487
It might be very usefull for this kind of folder files processing.

It is class object which will stream all files/folders found along given path as parameters into two place holder methods where you can process them as you wish.

Overthere you will find sample of filling up cursor with all files
found along given path, simple file search implementation and also folder printout.

HTH
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform