>>>Hi, folks...
>>>
>>>Quick question...does VFP 6 support arrays with more than 65,000 elements? (65,000 is the limit in VFP 5, but I don't know if they bumped up the limit in VFP 6).
>>>
>>
>>Same restriction. And the number may be smaller than that depending on memory and other variables using up some of the name slots.
>
>Ed, you can correct me if I am wrong here, but I think that arrays somehow walk on water as far as avoiding the system limit for memvars. IOW, this is perfectly ok:
>
>
>DIMENSION la1(65000)
>DIMENSION la2(65000)
>
>The sum total of array elements here is way over the limit prescribed by MVCOUNT, but some how does not throw an error. Any insight here?
Each array takes 1 entry in the name table; there is a limit on the size of the name table separate from the size of an array. There was some limit where the name table space starts interfering with the upper bound of the number of elements in the array, but I'm not sure when that limit was from. The older Fox documentation for 2.x related memory size rather than the name space size as the key factor, but we no longer can control the memory for the string space explicitly.