Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about VFP 6 and array dimensions
Message
From
29/12/1999 13:32:54
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00309652
Message ID:
00309976
Views:
28
>Bill,
>
>All I know about this is from the help file. Maximum number of variables is 65,000, maximum number of elements in an array is 65,000. Since VFP stores arrays as single variable names I may have been incorrect in my statement. However, as you fill the 65,000 elements of the array you will eventually exhaust the memory pool for memvars.
>

If you see my response to Ed here, this is not exactly correct (if I understand what you are saying). The following does not cause an error, and fills both arrays as expected:
DIMENSION la1(60000)
DIMENSION la2(60000)

FOR i = 1 TO 60000
	la1[i] = i
	la2[i] = i
ENDFOR
the sum of the filled elements is well over the stated limit for memvars as prescribed by MVCOUNT.

>VFP has a limitation ofnthe size of the memory allocated for memvars. That memory is also configured by the MVCOUNT setting. Setting MVCOUNT does not only affect the number of names you can have, it also affects the amount of memory set aside for memvars. You cannot exceed either of those limits.

Ed pointed out that an array uses only a single name in the name table. Seeing as how I have very little idea what a name table does, I'm not sure how this affects your assertion.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform