Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too many variables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00776094
Message ID:
00776159
Vues:
21
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform