Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I read files without error no 31 ?
Message
From
07/08/2008 09:29:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01337161
Message ID:
01337206
Views:
10
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform