Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR API > The Object Model > QPR Metrics > SCModel Commands

DeleteElement

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.2.1

 

Deletes specified element without asking any confirmation from the user.

 

Synopsis:

 

SCModel.DeleteElement(ElementId)

 

Parameters:

 

ElementId: Integer

 

Required Rights:

 

Administrator or Model Administrator rights to the SCModel.

 

Return Values:

Below are listed the return values that this function can return:

 

RV_SUCCESS

RV_MODEL_NOT_OPEN

RV_NO_RIGHTS

RV_ELEMENT_NOT_FOUND

RV_INVALID_ELEMENT_TYPE

RV_UNKNOWN_ERROR

 

Example Procedure:

 

iRet = SCModel.DeleteElement(iMeaId)