PA_CountUsers

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

version 2003


PA_CountUsers (userKind) long

ParameterTypeDescription
userKindPA_UserKindKind of user
Function resultlongNumber of users of a certain kind

Description

The routine PA_CountUsers returns the number of users created by the designer or the 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 user count.

   long CountTotalUsers ()
   {
      return ( PA_CountUsers(eUK_CreatedByDesigner) + PA_CountUsers(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