Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array
Message
 
À
11/03/2002 09:18:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Array
Divers
Thread ID:
00630919
Message ID:
00630921
Vues:
25
>Hi!!!
>
>How can I add an element into an array ? Today I need declare an array an put the values but now I don't know how many element I will have.
>
>Does anyone knows how do I do it ?
>
>Thanks,
>
>Leonardo Coelho
>Rio de Janeiro - Brasil
>Vasco da Gama - The bestiest football team in world.

DIMENSION myArray[myNumberOfElements]

VFP Help says:


Redimensioning Arrays… You can change the size and dimensions of an array by issuing DIMENSION again. The size of an array can be increased or decreased; one-dimensional arrays can be converted to two dimensions, and two-dimensional arrays can be reduced to one dimension.

If the number of elements in an array is increased, the contents of all the elements in the original array are copied to the newly redimensioned array. The additional array elements are initialized to false (.F.).
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform