version 2003
PA_CountUserGroups (kind) long
| Parameter | Type | Description | |
| kind | PA_UserKind | Kind of users | |
| Function result | long | Number of groups of users of type kind |
Description
The routine PA_CountUserGroups returns the number of groups created by the designer or administrator.
Pass one of the possible values of the enum PA_UserKind in userKind, defined in the "PublicTypes.h" header file:
typedef enum
{
eUK_CreatedByDesigner = 0,
eUK_CreatedByAdministrator
} PA_UserKind;
Example
Return the total group count.
long CountTotalUsers ()
{
return ( PA_CountUserGroups(eUK_CreatedByDesigner)
+ PA_CountUserGroups(eUK_CreatedByAdministrator) );
}
See Also
No reference.
Error Handling
Use PA_GetLastError to see if an error occurred.