>>What is the best way for this?
>>A loop or i can do it with a command line?
>You can replace the values of all elements in one line myArray=5000, but not only in the 2nd column (that among others is why in VFP local temp cursors are easier to use than arrays).
>So as you said, a loop might be the easiest way.
But if values for myarray[i,1] would have to be assigned later anyway... then, myArray=5000 would be very fast, and the rest would be the same as before.