When I create a 200 x 200 array
dimension MyArray(200,200)
no problem, but when I try to create a 400 x 600 array, I get a "Too many variables" message. How could I make my application work
Thank you for your help.
Michel Cariotis
When I create a 200 x 200 array
dimension MyArray(200,200)
no problem, but when I try to create a 400 x 600 array, I get a "Too many variables" message. How could I make my application work
Thank you for your help.
Michel Cariotis
Number of variables
Shabaneh
Prior to VFP9 arrays are limited to 65000 elements. You're exceeding the limit. Even in VFP9 I wouldn't trust available memory and keep elements count low.
Probably there is an alternative to 400*600 array for you (ie: maybe 4 arrays each 100*600 if nothing else).
gauravgulati81
I have never gotten this error nor can I replicate it, but …..
Prior to ver 9.0 Arrays where limited to 64,000 elements, yours has a whopping 240,000 !! So I assume you are using 9.0.
Have you tried changing the MVCOUNT value in your .fpw File (I have no idea if this settings effects arrays or if the limit has been raised above 64,000 in 9.0)
Regardless why would you want an array of that size Why not just use a table\cursor (or three)
Dave M.
Luis Miguel Abreu
Thank you!
In fact I am still using 6.0. I am going to try to use a table instead, since my array was ending up as a table with less than 40 fields, so I should have not size problems...
Michel