>Thank you for this info. Yes I guess 65530 limititaion about array but I didn't know it has 5 element. BTW, I can't switch to VFP9 untill end of year. Anyway, thank you for reminder VFP9.
First, no, it is NOT 65530 - strangely, the limitation is exactly 65000 elements.
Second, the adir() command creates a two-dimensional array; a row for each file. The 5 columns include filename, date of last modification, attributes... well, better look it up. So the real limitation in this case is 65000 / 5 = 13000 files.
I think Tore gave you the correct solution, but I wanted to explain why adir() didn't work in your case.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)