Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array trouble
Message
From
25/06/2002 10:32:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
25/06/2002 10:16:16
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00672003
Message ID:
00672009
Views:
11
Hi Ben,

this is the way (re)dimension works ::(
Foxpro arrays are one dimensional, they only apear as two dimensions. You can always access a two dimensional array as one dimensional.
i.e.
dimension arrBen(4,4)
arrbem = ''
arrben(2,2)='1'
?arrben(2,2),arrben(6)
If you change the number of columns all cells stay in there one dimensional order. (this is no problem if you change row number only, because the rows are added on the end)


Agnes

>clear all
>release all
>clear
>dimension arrBen(4,4)
>arrBen(2,2)='TEST'
>display memory like arrBen
>dimension arrBen(5,5)
>display memory like arrBen
>
>**Running VFP6 and Service Pack 5
>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. Compatible is set off.
>
>Thanks
>Ben
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform