Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array trouble
Message
From
25/06/2002 10:45:12
 
 
To
25/06/2002 10:16:16
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00672003
Message ID:
00672017
Views:
12
Hello Ben

This redimension of my array does not keep my memory in the same(original) location. The word 'TEST' is now in (2,1)...furthermore, it is inconsistent. Why can it be that my redimension is not functioning correctly? It doesn't keep the variables in it's original spot.

Actually, the array element is in its original spot. location [ 2, 2 ] in an array that is dimensioned 4 x 4 is element number 6. If that array is redimensioned to 5 x 5, element number 6 is now in location [ 2, 1 ].

Check out the AELEMENT() function in the on-line help. The function returns the number of an array element from the element's subscripts.

HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform