>>>The problem occurs long before 65000 files in a directory; the 17,001st entry creates an array with over 65000 elements and blows ADIR() out of the water.
>>
>>13,000st, not 17,001st.
>
>Yep, 13000x5=65000:
>Column Array contents Data type
>1 File names Character
>2 File sizes Numeric
>3 Dates last modified Date
>4 Times last modified Character
>5 File attributes Character
>
>I think, I have to try to create 13001 file in one directory and call adir. How does adir() react?
It blows up with 'too many variables' reported.