XLL+ Class Library

CXlOper::operator =

Assigns a new value to the CXlOper, using a variety of input types

[C++]
const CXlOper& operator =(
   const CXlOper& xlo
);
const CXlOper& operator =(
   const XLOPER& xlop
);
const CXlOper& operator =(
   const COper& op
);
const CXlOper& operator =(
   double d
);
const CXlOper& operator =(
   WORD wError
);
const CXlOper& operator =(
   BOOL boolean
);
const CXlOper& operator =(
   const char* psz
);
const CXlOper& operator =(
   const XLREF& xlr
);
const CXlOper& operator =(
   const std::vector<T>& vec
);
const CXlOper& operator =(
   const ple::imtx<T>& mat1
);
const CXlOper& operator =(
   const xlp::matrix<T>& mat2
);

Parameters

xlo

An initialised CXlOper.

xlop

An initialised XLOPER.

op

An initialised OPER, or a reference to COper.

d

A double-precision floating-point number.

wError

An error number (see Error Values).

boolean

A boolean value: TRUE (1) or FALSE (0).

psz

A pointer to a null-terminated ASCII string, or a reference to a CString.

xlr

A populated Excel range reference.

vec

A vector of doubles, booleans or strings.

The following types for T are directly supported:

  • bool
  • long
  • unsigned long
  • int
  • unsigned int
  • short
  • unsigned short
  • double
  • float
  • CString
  • std::string
Any other type is treated as an enumerated type, and converted first to long and then to the specified type.

mat1

2-dimensional array of data, contained in an object which supports the imtx interface.

The supported data types for T are as for vec.

mat2

2-dimensional array of data.

The supported data types for T are as for vec.

Remarks

These operators assign a new value to the CXlOper. If the CXlOper already contains data, then it will be appropriately cleared before the assignment.

Examples

MyDaysInFeb Example | MySort Example

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods