Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too many variables error
Message
De
23/07/2000 12:04:53
 
 
À
23/07/2000 11:40:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00395974
Message ID:
00395978
Vues:
8
>Hi All
>
>
>Ran into this error the other day. Help I blew the number of variables vfp maintains and that I can
>adjust the amount of variables with a configuration file using the MVCOUNT option to increase the
>number of variables foxpro maintains. I'm not sure how to use this option exactly.
>Does anybody have an example of a configuration file using MVCOUNT and what type of things
>contribute to this type error as in selecting data into arrays as apposed to selecting into a datafile ?
>

In CONFIG.FPW:

MVCOUNT=2048

The value can be anywhere between 128 and 65000, it defaults to 1024

An array uses 1 variable name, but it sometimes results in exhaustion of other limited resource sizes before the theoretical maximum allowed by MVCOUNT. In addition, arrays can have a maximum of 65000 elements per array, so if the number of colums * number of rows selected exceeds this number, the array formation will result in the error 'Too many variables' regardless of other variable assignments. Selecting into arrays where the number of elements is large is generally a bad idea; you can use a cursor in most cases.
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