Yes, but it gives strang results too. The problem is that I want to add a third column...
>Did you try ains() with the number "2" as the third parameter?
"Inserts a column into a two-dimensional array. The new column is inserted just before the column specified with nElementNumber.">
>>If I have an array like so:
>>
>>myarray(1,1)= "Item 1"
>>myarray(1,2)= "Apples"
>>myarray(2,1)= "Item 2"
>>myarray(2,2)= "Oranges"
>>
>>and I want to add a 3rd column to the array so I will end up with the following:
>>
>>myarray(1,1)= "Item 1"
>>myarray(1,2)= "Apples"
>>myarray(1,3)= .F.
>>myarray(2,1)= "Item 2"
>>myarray(2,2)= "Oranges"
>>myarray(2,3)= .F.
>>
>>How do I do it? When I redimension myarray(2,3) it looks like this:
>>
>>myarray(1,1)= "Item 1"
>>myarray(1,2)= "Apples"
>>myarray(1,3)= "Item 2"
>>myarray(2,1)= "Oranges"
>>myarray(2,2)= .F.
>>myarray(2,3)= .F.
>>
>>The AINS() seems to do the same thing...
>>
>>TIA!
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"