Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Replaces the specified number of characters with the supplied string.

Script Syntax

Copy Code
oXMLDOMCharacterData.replaceData(
offset, 
count, 
data);

Remarks

Script Parameters

offset

Long integer value specifying the offset, in characters, at which to start replacing string data.

count

Long integer value specifying the number of characters to replace.

data

String containing the new data that replaces the old string data.

Script Return Value

None.

C/C++ Syntax

Copy Code
HRESULT replaceData(
  long 
offset,
  long 
count,
  BSTR 
data
);

Remarks

C/C++ Parameters

offset

[in] Offset, in characters, at which to start replacing string data.

count

[in] Number of characters to replace.

data

[in] New data that replaces the old string data.

C/C++ Return Values

S_OK

Value returned if successful.

S_FALSE

Value when returning Null.

E_FAIL

Value returned if an error occurs.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This method applies to the following objects and interfaces:

IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, and IXMLDOMText.