FindName Method (SQL-DMO)

The FindName method returns the ordinal position of a string within a container object.

Applies To
NameList Object Names Collection

Syntax

object.FindName( Name ) as Long

Part Description
object Expression that evaluates to an object in the Applies To list
Name String on which the search is based

Returns

On success, a long integer indicating the ordinal position of the name string. Zero, if the name cannot be located in the container.

Remarks

On failed search, the method raises the error SQLDMO_E_NAMENOTFOUND.

Prototype (C/C++)

HRESULT FindName(SQLDMO_LPCSTR szName
LPLONG pRetVal);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.