XLL+ Class Library (6.3)

CXlOper::FromString

Assigns a string value and data type to the CXlOper

void FromString(
   const char* psz
);
void FromString(
   const std::string& str
);
void FromString(
   const wchar_t* wpsz
);
void FromString(
   const std::wstring& wstr
);
void FromString(
   const CXlStringArg& strarg
);

Parameters

psz

Value to be applied to the CXlOper. Note that under Excel 2007 and above, the string will be converted to Unicode.

str

STL ASCII string to be applied to the CXlOper. Note that under Excel 2007 and above, the string will be converted to Unicode.

wpsz

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

wstr

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

strarg

A reference to a string argument type passed from Excel, which may contain an 8-bit string or a 16-bit string.

Remarks

This function assigns the supplied string value to the CXlOper, and sets the type of the CXlOper to be xltypeStr.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods