XLL+ Class Library (6.3)

CXlOper::GetVectorCount

Returns the number of cells in an array

USHORT GetVectorCount( ) const;

Return Value

This function returns the total number of cells contained in an CXlOper.

Remarks

Use this function with VectorCell() to iterate the cells in a vector.

If the CXlOper is not a vector (i.e. contains more than row and more than column) then the return value may be subject to overflow (because it is greater than 2^16) and will therefore be unreliable.

NoteNote:

This method is deprecated. Use GetVectorCount2 instead.

Example

CXlOper::VectorCell() Example

Requirements

Header: xllplus.h

See Also

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