|
||
Revision history:
Introduced in QPR 7.2.1
Last changed in QPR 7.4.1
Returns a variant array of rights set for an element type.
Synopsis:
SCModel.GetObjectRights(ElementID, out Rights)
Parameters:
ElementID: Integer
Rights: Pointer to a variant array. The array contains one row per user who has rights set for the object. Every row contains the following columns:
•User/group ID: Integer.
•User/group Name: String.
•AccessLevel: Integer; none (0), view (1), update (2), full (3), admin (4).
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_NO_RIGHTS_FOUND
RV_UNKNOWN_ERROR
Example Procedure:
iRet = oModel.GetObjectRights(Id, Rights)