Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about VFP 6 and array dimensions
Message
From
29/12/1999 01:05:32
 
 
To
29/12/1999 00:26:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00309652
Message ID:
00309719
Views:
28
>>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform