Given two objects that are related to the current object through a given ordered association, change the order of the two objects so that the second object comes before the first. The method returns the LastReturnCode.
Syntax
LastReturnCode = object.ReordrAssocBefr nAscTypeCode nToObjID1 nToObjID2
Parameters
object
An expression that evaluates to a MetaModelObject.
LastReturnCode
A long value representing the return code from the method.
nAscTypeCode
A long value indicating the type of association to follow.
nToObjID1
A long value indicating the object id of the first target object.
nToObjID2
A long value indicating the object id of the second target object.
Remarks
EAPI_SUCCESSFUL_RC - indicates a successful execution
EAPI_FROM_OBJECT_NOT_FOUND_RC - indicates that the current object is invalid
EAPI_OBJECT_1_NOT_FOUND_RC - indicates that the first object is invalid
EAPI_OBJECT_2_NOT_FOUND_RC - indicates that the second object is invalid
EAPI_ATC_INVALID_RC - indicates that the association type code is invalid
EAPI_ASSOC1_PROTECTED_RC - indicates that the association from the current object to the first object is protected
EAPI_ASSOC2_PROTECTED_RC - indicates that the association from the current object to the second object is protected
EAPI_ASSOC1_NOT_FOUND_RC - indicates that the association from the current object to the first object does not exist
EAPI_ASSOC2_NOT_FOUND_RC- indicates that the association from the current object to the second object does not exist
EAPI_ASSOC_NOT_ORDERED_RC - indicates that the association is not ordered
|
Copyright © 2014 CA.
All rights reserved.
|
|