QPR Knowledge Base 2017.1

GetModelProperty

GetModelProperty

Previous topic Next topic No directory for this topic  

GetModelProperty

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

Revision history:

Introduced in QPR 7.4.1 SP5

 

Returns the value of the model property defined in the function call.

 

Synopsis:

 

SCModel.GetModelProperty(PropertyName, out Value)

 

Parameters:

 

PropertyName: String. Name of the property for which the value is requested. Supported properties:

ModelArchived: Returns True or False depending on whether the model is archived.

out Value: Variant. Variant for the returned value.

 

Required Rights:

 

Administrator or model administrator.

 

Return Values:

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

 

RV_APPLICATION_QUIT_CALLED

RV_NOT_CONNECTED_TO_SERVER

RV_NOT_AUTHENTICATED

RV_MODEL_NOT_OPEN

RV_SUCCESS

RV_NO_RIGHTS

RV_PROPERTY_NOT_SUPPORTED

RV_NO_DATA

RV_UNKNOWN_ERROR

 

Example Procedure:

 

iRet = SCModel.GetModelProperty("ModelArchived", bArchived)