Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR API > The Object Model > QPR Modeling > PGApplication Commands

GetGroupInfo

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.4.1

 

Returns an array of group information about the group ID defined in the function call.

 

Synopsis:

 

PGApplication.GetGroupInfo(GroupID, out UserGroupArray)

 

Parameters:

 

GroupID: Integer. ID of some group. In the case this parameter is -1, all groups (both QPR Modeling Client or Web Client user groups) with rights to QPR Modeling Client are returned. In the case this parameter is the ID of some user, all groups the user belongs to are returned.

out UserGroupArray: Variant array. Variant array containing all returned groups with one group per row. Every row has the following columns:

Group ID, Integer

Group name, String

 

Required Rights:

 

None.

 

Return Values:

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

 

RV_APPLICATION_QUIT_CALLED

RV_NOT_CONNECTED_TO_SERVER

RV_SUCCESS

RV_GROUP_NOT_FOUND

 

Example Procedure:

 

iRet = PGApplication.GetGroupInfo(1234, UserGroupArray)