>Naomi,
>
>>How did you get laFiles first?
>>
>>You can not use ADIR() on a directory with more than 13K files.
>
>Yes you can. adir() simply won't contain any information about the excess files.
>
>
>md C:\Temp\hugeadir
>
>for i = 1 to 20000
> @0,0 say i
> strtofile( transform( i ), "C:\Temp\hugeadir\a" + padl( i, 5, "0" ) + ".txt" )
>endfor
>local laFiles[1]
>adir( laFiles, "C:\Temp\hugeadir\*.*" )
>
Thanks - I believe you.
If it's not broken, fix it until it is.
My Blog