>>>>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
CREATE CURSOR temp (f1 i)
FOR i = 1 TO 70000
INSERT INTO temp VALUES (i)
ENDFOR
SELECT * FROM temp INTO ARRAY laResult
DIMENSION laResult[70000]
Regards
-Stefan