XLL+ Class Library (7.0)

CXlOper::Format

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

BOOL Format(
   const char* lpszFormat,
    ...
);
BOOL Format(
   const wchar_t* lpwszFormat,
    ...
);
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.

lpwszFormat

A formatting string, exactly like those used by sprintf.

idFormat

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

Return Value

The function always returns FALSE;

Remarks

The Format 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("Result code %d", rc);

Examples

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

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods