XLL+ Class Library (6.3)

CXlStringArg::operator bool

Returns true if the string is not null, false is the string is null

operator bool( ) const;

Return Value

This function returns a boolean value indicating whether the string is not null or null. It allows the CXlStringArg object to be used in C++ boolean constructs in the same way as string pointers:

CopyC++
CXlStringArg s;
const char* t = s ? s : "Default";

Requirements

Header: xlpstringarg.h

See Also

CXlStringArg Class | CXlStringArg Methods