This method will delete the current object from the model. It takes one parameter (a flag indicating whether a trigger delete should be executed or not) and returns the LastReturnCode value.
Syntax
LastReturnCode = object.DelObject nTriggerFlag
Parameters
object
An expression that evaluates to a MetaModelObject.
LastReturnCode
A long value representing the return code from the method.
nTriggerFlag
A boolean value used to tell the delete method to trigger delete related objects when this object is deleted. A zero value indicates that a non-trigger delete will be executed (only the object will be deleted) and a non-zero value indicates that a trigger delete will be executed (the object and any objects related to it through mandatory associations will be deleted).
Remarks
EAPI_SUCCESSFUL_RC - indicates a successful execution
EAPI_OBJECT_NOT_FOUND_RC - indicates that the current object is invalid
EAPI_OBJECT_PROTECTED_RC - indicates that the deletion of the current object would cause a protection error
|
Copyright © 2014 CA.
All rights reserved.
|
|