IVBFormat::Format method (vbinterf.h)
Formats a string according to a pattern.
HRESULT Format(
[in] VARIANT *vData,
[in] BSTR bstrFormat,
[in] LPVOID lpBuffer,
[in] USHORT cb,
[in] LONG lcid,
[in] SHORT sFirstDayOfWeek,
[in] USHORT sFirstWeekOfYear,
[out] USHORT *rcb
);
[in] vData
Data to be formatted.
[in] bstrFormat
Format string to be applied to the data.
[in] lpBuffer
Pointer to result buffer.
[in] cb
Length of result buffer.
[in] lcid
Locale ID.
[in] sFirstDayOfWeek
Affects the 'w', FirstDayOfWeek, format result.
[in] sFirstWeekOfYear
Affects the 'ww', FirstWeekOfYear, format result.
[out] rcb
Number of bytes copied to the result buffer.
This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
When migrating a VBX control to an OLE control, Format replaces the Visual Basic VBFormat, which is no longer supported.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | vbinterf.h |