Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADIR() file limit

Status
Not open for further replies.

EmmaLu

Programmer
Jul 16, 2004
38
US
I have noticed with VFP8 using ADIR() to create a list of file names in a specified folder produces an error 31 if there are more than around 13,000 files. In VFP9 I don't get that error. Is there a way to increase the number of files ADIR() can count in VFP8?

I tried the DIMENSION function but still no luck.

Thanks
 
No, in VFP prior to version 8 the array limit is 65K items. You may try using loop with sys(2000) or FileSystemObject.
 
BTW, I mistyped. I meant all versions including version 8 have this limitation. In VFP9 the arrays sizes are limited by available memory only.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top