CopyColumn (Function)

image\trumpet2.gif Disclaimer

The CopyColumn function copies a set of data elements in an array from one column to another over a range of rows.  

Syntax

CopyColumn(PriceArray, ColIndx2, ColIndx3, StartRow, Size1)

Returns (Boolean)

Copies the specified data elements in an array from one column to another.  The function itself returns True when the copy is completed.

Parameters

Name Type Description
MyArray Numeric Array Specifies the name of a numeric two-dimensional array containing the values to be copied.
ColIndx2 Numeric Sets the column to copy to.
ColIndx3 Numeric Sets the column to copy from.
StartRow Numeric Sets the row that contains the first element to be copied
Size1 Numeric Sets the row that contains the last element to be copied

Remarks

The function copies data elements from one column to another (2nd dimension index position)  over a range of 1st dimension indexes (rows).

The value for the Size input parameter should always be a whole number greater than 0 and is typically equal to the number of data elements in the array.

The CopyColumn function only works with two-dimensional arrays.

Example

Copies the data elements from column 2 to column 1 in the 4th through 6th rows of MyArray and assigns Condition1 to True when completed.

Array: myArray[6,2](0);

{… (add EL statements here to assign values to the array) }

Condition1 = CopyColumn(myArray, 2, 1, 4, 6);