XLL+ Class Library (6.3)

CXlOper::GetDims

Gets the number of rows and columns in an array

void GetDims(
   USHORT& usRows,
   USHORT& usColumns,
   BOOL bArrayOnly = FALSE
) const;
void GetDims(
   size_t& szRows,
   size_t& szColumns,
   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 CXlOper 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 CXlOper.

szRows

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

szColumns

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

Remarks

This function gets the height and width of an array.

Examples

CXlOper::GetDims() Example | MySum Example

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods