Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too many variables
Message
De
30/11/2009 16:29:16
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01436885
Message ID:
01436994
Vues:
116
>>>>Unlikely with VFP9 but anyway do you use array anywhere that results in more than 65000 elements (such as adir()).
>>>
>>>I'm not sure how it's possible because each array is one variable from VFP point of view
>>
>>It is possible in versions before VFP9. If you attempt to create an array with elements more than 65000 that is the error you get.
>
>
>No it's not possible. Before VFP9 the error is "Invalid subscript reference". In VFP9 - "There is not enough memory to complete this operation".
>

Hi Sergey,

The following code throws Error 22 in a Vfp7 test for me (no errors in Vfp9):
CREATE CURSOR temp (f1 i, f2 i, f3 i, f4 i, f5 i)
FOR i = 1 TO 15000
	INSERT INTO temp VALUES (i,i,i,i,i)
ENDFOR
SELECT * FROM temp INTO ARRAY laResult	&& Error 22

CREATE CURSOR temp (f1 i)
FOR i = 1 TO 70000
	INSERT INTO temp VALUES (i)
ENDFOR
SELECT * FROM temp INTO ARRAY laResult	&& Error 1809

DIMENSION laResult[70000]	&& Error 31
Regards
-Stefan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform