Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Retrieves a substring of the full string from the specified range.
Syntax
HRESULT substring( long offset, long count, BSTR * data);
Parameters
- offset
- [in] Offset, in characters, from the beginning of the string. An offset of zero indicates copying from the start of the data.
- count
- [in] Number of characters to retrieve from the specified offset.
- data
- [out] Substring to return.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
If the offset and count parameters indicate a range beyond the end of the string, the returned substring continues only until the end of the string data.
See Also
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.