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