XLL+ Class Library (6.3)

CXlOper::Compare

Compare the contents of this CXlOper with another

int Compare(
   const CXlOper& xlo
) const;

Parameters

xlo

A reference to another CXlOper.

Return Value

Returns 1 if the value in this object is greater than that in xlo, -1 if xlo is less and 0 if the two are equal.

Remarks

This function acts like strcmp() and similar 'C' library functions.

Note that CXlOpers are sorted by type first and then value. Thus a string containing "123" will not necessarily sort later than an integer containing 122. For CXlOpers of the same type, sort order is always by value.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods