XLL+ Class Library

CXlOper::Format

Fill the CXlOper with a formatted string (like sprintf() and CString::Format())

[C++]
BOOL Format(
   const char* lpszFormat,
    ...
);
BOOL Format(
   UINT idFormat,
    ...
);

Parameters

lpszFormat

A formatting string, exactly like those used by sprintf.

...

The values to be substituted into the output string in place of the tokens in the template string.

idFormat

The resource ID of a formatting string, exactly like those used by sprintf.

Return value

The result of the SDK call-back. xlretSuccess (0) indicates success. Other values indicate failure. A full list of return values can be found in the section "Return codes" in the MS SDK header file XLCALL32.H.

Remarks

This function places a string into the CXlOper which calls it. The string is formatted using the template string in exactly the same way as sprintf(). For example:

CXlOper xloResult;
xloResult.Format("#ERROR: Result code %d", rc);

Examples

COper::GetDims() Example | CXlOper::AllocArray() Example

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods