Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array
Message
 
To
11/03/2002 09:18:30
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Array
Miscellaneous
Thread ID:
00630919
Message ID:
00630921
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform