XLL+ Class Library

CXlOper::VectorCell

Returns a reference to an item in a one-dimensional array

[C++]
CXlOper& VectorCell(
   USHORT usItem,
   BOOL bArrayOnly = FALSE
);
const CXlOper& VectorCell(
   USHORT usItem,
   BOOL bArrayOnly = FALSE
) const;

Parameters

usItem

The row or column containing the item of interest (the top row and the leftmost column are 0).

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 the CXlOper itself for a non-array CXlOper, so long as usItem = 0.

Return value

This function returns a reference to an item contained in a one-dimensional array. If usItem is out of range, then the function asserts.

Remarks

The function should only be used for arrays containing one row or one column.

The reference returned by this function can be used to read the item or to update it.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods | CXlOper::GetVectorCount() | CXlOper::IsVector()