PA_CountUserGroups

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_CountUserGroups (kind) long

ParameterTypeDescription
kindPA_UserKindKind of users
Function resultlongNumber 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.


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next