Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too many variable
Message
De
13/10/2000 12:46:14
 
 
À
13/10/2000 12:06:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00428969
Message ID:
00429177
Vues:
26
>>Hi,
>> Thank you for reply. It work fine if I store them in cursor, but will cause error if stored in array. why?
>>
>>thank you
>
>Because every element of the array is adding to you total variable count and that has a finite limit.
>

No, that's not true; you can do the following:

DIMENSION aArray1[65000], aArray2[65000]

Each array uses a single entry in the NTI, but the array element counter in the value structure is a 16 bit integer, and there's a reason why it's 65000 rather than 64K, but for the life of me I don't remember it. You may run out of string space allocating huge arrays, but it's not a name issue.

>A cursor will be just as fast anyway as it is all in memory (unles it gets so big that VFP pushes it to disk). cursors are very fast.

A cursor may well be faster if grouped aggregation is involved, since the internal Rushmore optimization rates to be faster than making multiple passes through an array in code.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform