XLL+ Class Library

CXlOper::ToSRef

Retrieves/sets a single range reference from a CXlOper

[C++]
CXlRef& ToSRef(
   BOOL bStrict = FALSE
);
const CXlRef& ToSRef(
   BOOL bStrict = FALSE
) const;

Parameters

bStrict

If bStrict is FALSE (the default) then, if the CXlOper does not contain a single or multiple reference, the function will safely return the range "A1:A1". If the CXlOper contains a multiple range, then the function will return a copy of the first reference.

If bStrict is TRUE then the function will assert unless the CXlOper contains a single reference.

Return value

This function returns the range reference contained in a CXlOper, or the first such reference if there are many.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods | CXlOper::GetRef() | CXlOper::GetRefItem()