>I am having problems with adir.
>If a directory has a big number (more than 10,000) of files, the function cannot be processed, because of the maximum number of variables was reachead.
>Is there a solution for my problem, is there any parameter to specify a maximum number of files to be returned by the adir function?
The problem is VFP's limit on the number of array elements. As I recall, it's 65,000. Given this, I'd say that the actual number of files is probably in excess of 13,000.
George
Ubi caritas et amor, deus ibi est