>When attempting to run a genetic algorithm application in VFP 5.0, I get a 'too many variables' error message at the following line of code execution:
>
>DIMENSION population((2 + population_size),max_columns)
>
>At the default value of mvcount (1024) I get this message at a population_size between 750-800. I tried raising the value of mvcount all the way up to 65000, but I still get the error. Is this problem correctable? Am I limited by RAM vice VFP5? How can I tell?
First FoxPro has an absolute limit of 65000 items in an array (in otherwords, (rows * columns) <= 65000. There is no exceeding this.
However, I'm not sure that this is your problem - if I recall, an array takes up one variable space (for its address, for you assembler/C people). Just before executing this instruction, try issuing a DISPLAY MEMORY TO PRINTER and check the report - there may be more going on in there than you think.