Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR and getting multiple file extensions
Message
De
04/05/2007 01:25:40
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
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:
01222400
Vues:
25
>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)
>
This actually limits you to 1296 extensions - from 000 to 0zz. And who ever said the extension has to be 3 characters long? You can have many more.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform