Thanks for the wikis link David. Some of the information is dated however, as you can change the nesting level to 64,000 using STACKSIZE in VFP9. Your function would never fail if an appropriate stacksize setting was included in the config.
>Rhys,
>
>>I heavily modified some code I found from a Michael Reynolds. It works like Adir() but has full file paths for every file and every subdirectory and subdirectory file below the passed path.
>
>Look at the code in this Wiki article:
http://fox.wikis.com/wc.dll?Wiki~RecursionInVFP~VFP