Replace Method

Names Object

Description

Replaces an existing string in the Names collection.

Visual Basic

Names.Replace (
[NewName :=] strName,
[ReplaceItem :=] {strReplaceName | lReplaceOrdinal} )

C++

HRESULT pNames->ReplaceByName (
SQLOLE_LPCSTR
strName,
SQLOLE_LPCSTR
strReplaceName );

HRESULT pNames->ReplaceByOrd (
SQLOLE_LPCSTR
strName,
long
lReplaceOrdinal );

Elements

Element Type Description

strName String New string to insert into Names collection.
strReplaceName String String to replace.
lReplaceOrdinal Long Index into the Names collection of the Name to replace. For Visual Basic the first ordinal value is number 1. For C++ the first ordinal value is 0.