substringData Method (Windows CE 5.0)

Send Feedback

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

[Script]

Script Syntax

strValue = oXMLDOMCharacterData.substringData(offset,count);

Script Parameters

  • offset
    Long integer value indicating the offset, in characters, from the beginning of the string. An offset of zero indicates copying from the start of the data.
  • count
    Long integer value indicating the number of characters to retrieve from the specified offset.

Script Return Value

String. Returns the substring.

[C/C++]

C/C++ Syntax

HRESULT substringData(longoffset,longcount,BSTR* data);

C/C++ 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, retval] Substring to return.

C/C++ Return Values

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value when returning Null.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

General 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.

This method applies to the following objects and interfaces:

IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, and IXMLDOMText.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.