>Hi friends
>is there any limit on how many files ADIR command can return. following works fine except on some folders. it gives Invalid subscript reference error.
>
>
>lnFiles = ADIR(laFiles, lcpath + '*.*', 'D')
>
>
>any ideas please? Thanks for ur help
Update to VPF9SP1 and the amount of RAM on your computer is the limiting factor.