Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Dimension to resize an array
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Using Dimension to resize an array
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01085313
Message ID:
01085313
Views:
106
I am seeing something strange when trying to resize an array.

I have an array that has, say 10 rows and 5 columns (aMyArray[10,5])

I want to add a column (and later assign a value to it). Here is what I do:
dimension aMyArray( alen(aMyArray,1), alen(aMyArray,2)+1 )
I expected that there will be a 6th column with value .F. in every row. But, instead, all .F.-value elements go to the bottom of the array.

What am I missing?

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform