Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMCharacterData::rep...     IXMLDOMCharacterData Inte...    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMCharacterData::substringData Method


Retrieves a substring of the full string from the specified range.

Visual Basic Syntax

strValue = oXMLDOMCharacterData.substringData(offset, count)

C/C++ Syntax

HRESULT substringData(
    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.

C/C++ Return Values

S_OK
Value returned if successful.
S_FALSE 
Value when returning null.

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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.