Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Too many variables
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00776094
Message ID:
00776159
Views:
23
>>>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.

You're right, that has changed, however you can still run out of elements in an array without exhausting the number of variable names. This is why I suggest NOT using select into array unless you know exactly how many records you will get back.
Previous
Reply
Map
View

Click here to load this message in the networking platform