QPR Knowledge Base 2017.1

GetTypeIdByName

GetTypeIdByName

Previous topic Next topic No directory for this topic  

GetTypeIdByName

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

Revision history:

Introduced in QPR 7.2.1

 

Returns ID for first type that matches the TypeName.

 

Synopsis:

 

SCModel.GetTypeIdByName(TypeName, out Id)

 

Parameters:

 

TypeName: String, 'Element' for example

Id: Integer, returned ID of Typename

 

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_NO_RIGHTS

RV_UNKNOWN_ERROR

RV_MODEL_NOT_OPEN

RV_TYPE_NOT_FOUND

 

Example Procedure:

 

iRet = oModel.GetTypeIdByName("Alert", id)