Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR and getting multiple file extensions
Message
From
04/05/2007 01:25:40
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01222395
Message ID:
01222400
Views:
29
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform