XLL+ Class Library (6.3)

CXlCell::FromString

Assigns a string value and data type to the CXlCell

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

Parameters

psz

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

str

STL ASCII string to be applied to the CXlCell. 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 CXlCell. 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 CXlCell. Note that under Excel 2003 and below, the string will be converted to a multibyte character ASCII string, and limited to 255 bytes.

Remarks

This function assigns the value of psz to the CXlCell, and sets the type of the CXlCell to be xltypeStr.

Requirements

Header: xllplus.h

See Also

CXlCell Class | CXlCell Methods