Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Formats a string according to a pattern.
Syntax
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
);
Parameters
[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.
Return value
This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
Remarks
When migrating a VBX control to an OLE control, Format replaces the Visual Basic VBFormat, which is no longer supported.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | vbinterf.h |