Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Dimension to resize an array
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Using Dimension to resize an array
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01085313
Message ID:
01085313
Vues:
105
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform