Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR and getting multiple file extensions
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
ADIR and getting multiple file extensions
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01222395
Message ID:
01222395
Views:
111
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)
Next
Reply
Map
View

Click here to load this message in the networking platform