>>>Chuck,
>>>
>>>VFP considers an array as one variable regardless of number of items in it.
>>
>>Sergey,
>>
>>That is correct, but arrays are limited to 65,000 elements and the array eats up the ram allocated for variables. The variables are limited by two issue, number of variable names (an array is one name) and the amount of memory the variables take up (which can be exhausted before you reach the number of names).
>
>Jim,
>
>There's no such thing as memory allocated for variables. VFP allocates it dynamically. That's why you can read file more that 16Gb in size into memory using FILETOSTR() function if you've enough memory.
Just to clarify: this is actually 16
MB, to be more precise 16,777,184 characters.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison