Previous Topic: FetchModelInfoNext Topic: FetchSchemaAscTypeByMnem


FetchModelNameTypeObjs

This method will fetch all the objects in a model with the given name and type. The parameters are the object type code, the property type code (usually this will be 224 which is the property type code for NAME), and a string for the name to be searched for. It returns a MetaModelObjects collection object.

Syntax

object.FetchModelNameTypeObjs nObjTypeCode nPrpTypeCode szName

Parameters

bject

An expression that evaluates to an OpenAPI object.

nObjTypeCode

A long value indicating the type of object to count.

nPrpTypeCode

A long value indicating the type of the name property. This will usually be the type code for the NAME property.

szName

A string representing the name to be searched for.

Remarks

EAPI_SUCCESSFUL_RC - indicates a successful execution

EAPI_OTC_INVALID_RC - if object type code is invalid

EAPI_PTC_INVALID_RC - if property type code is invalid