Previous Topic: FetchCardManyAscNext Topic: FetchCharArrayPrp


FetchCardOneAsc

This method will fetch the object associated with the current object through a given association. The only parameter is the association type code and it returns a MetaModelObject object for the target object.

Syntax

object.FetchCardOneAsc nAscTypeCode

Parameters

object

An expression that evaluates to a MetaModelObject.

nAscTypeCode

A long value indicating the type of association to follow.

Remarks

EAPI_SUCCESSFUL_RC - indicates a successful execution

EAPI_ATC_INVALID_RC - indicates that the object type code is either not a cardinality one association or not a valid association type code

EAPI_ASSOC_NOT_FOUND_RC - indicates that the association is not valid for the current object

EAPI_FROM_OBJECT_NOT_FOUND_RC - indicates that the current object is invalid

EAPI_DEST_OBJ_NOT_FOUND_RC - indicates that the association does not exist