>Beware! :)
>
>There may not be a limit in OS terms, but in VFP terms, there is definitely a limit for the ADIR() function. 488 files on my machine. Pass that limit, ADIR will still work and not give any errors, but will only return 488 files.
That does not happen to me at all.
? Adir(laFiles, 'X:\foxv\ATC\Datadump\VCC\*.*') && 16933
? Alen(laFiles) && 84665
? Alen(laFiles, 1) && 16933
for lnFile = Alen(laFiles, 1) - 50 to Alen(laFiles, 1)
? laFiles[lnFile, 1] && Looks as they are indeed the last 50 files (the files names are date-related and I got the last days as I expected)
next lnFile
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges