XLL+ Class Library (7.0)

CXlCell::operator =

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

const CXlCell& operator =(
   const CXlOper& xlo
);
const CXlCell& operator =(
   const CXlCell& cell
);
const CXlCell& operator =(
   const CXlConstCell& ccell
);
const CXlCell& operator =(
   double d
);
const CXlCell& operator =(
   XlErrorType xlerr
);
const CXlCell& operator =(
   BOOL wboolean
);
const CXlCell& operator =(
   bool boolean
);
const CXlCell& operator =(
   const char* psz
);
const CXlCell& operator =(
   const wchar_t* wpsz
);
const CXlCell& operator =(
   const std::string& str_stl
);
const CXlCell& operator =(
   const std::wstring& wstr_stl
);
const CXlCell& operator =(
   const CString& str
);
const CXlCell& operator =(
   const CStringA& astr
);
const CXlCell& operator =(
   const CStringW& wstr
);

Parameters

xlo

An initialised CXlOper, whose contents will be copied to this object, if it contains a single value.

cell

An initialised CXlCell, which points to a cell in a CXlOper whose contents will be copied to this object. See CXlCell.

ccell

An initialised CXlConstCell, which points to a cell in a CXlOper whose contents will be copied to this object. See CXlConstCell.

d

A double-precision floating-point number.

xlerr

An error number (see also Error Values).

wboolean

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

boolean

A boolean value: true or false.

psz

A pointer to a null-terminated ASCII string. Note that under Excel 2007 and above, the string wil be converted to Unicode.

wpsz

A pointer to a null-terminated Unicode string. Note that under Excel 2003 and below, the string will be converted to a multibyte ASCII string, and limited to 255 bytes.

str_stl

A reference to an STL ASCII string. Note that under Excel 2007 and above, the string will be converted to Unicode.

wstr_stl

A reference to an STL Unicode string. Note that under Excel 2003 and below, the string will be converted to a multibyte character ASCII string, and limited to 255 bytes.

str

A reference to a compiler-dependent string. Note that under Excel 2007 and above, the string will be converted to Unicode if necessary. Under Excel 2003 and below, the string will be converted to a multibyte character ASCII string if necessary, and limited to 255 bytes.

astr

A reference to an ASCII string. Note that under Excel 2007 and above, the string will be converted to Unicode.

wstr

A reference to a Unicode string. Note that under Excel 2003 and below, the string will be converted to a multibyte character ASCII string, and limited to 255 bytes.

Remarks

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

Requirements

Header: xllplus.h

See Also

CXlCell Class | CXlCell Methods