Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too many variables
Message
De
01/12/2009 01:58:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
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:
01437023
Vues:
125
>>>>>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

Hi Stefan,
Missed your reply:) Interestingly wrote the almost same code to reproduce too many variables:)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform