XLL+ Class Library

COper::GetDims

Gets the number of rows and columns in an array

[C++]
void GetDims(
   USHORT& usRows,
   USHORT& usColumns,
   BOOL bArrayOnly = FALSE
) const;

Parameters

usRows

Reference to a variable which will contain the number of rows in the array.

usColumns

Reference to a variable that will contain the number of columns in the array.

bArrayOnly

If the bArrayOnly parameter is true, then the function asserts if the COper does not contain an array; if bArrayOnly is false, then the function returns 1 for the number of rows and columns of a non-array COper.

Remarks

This function gets the height and width of an array.

Examples

COper::GetDims() Example | MySum Example

Requirements

Header: xllplus.h

See Also

COper Class | COper Methods