PA_CountConnectedUsers

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

version 2003


PA_CountConnectedUsers long

ParameterTypeDescription
This command does not require any parameters
Function resultlongNumber of connected users

Description

The routine PA_CountConnectedUsers returns the number of current connected users in a Client-server environment (it always returns 1 from 4D mono).

Example

Check the number of connected users with a max connected users allowed by the plug-in.

   long   maxForMe;

   // private routine that check the plug-in registration number to see
   // how many users can connect to the plug-in
   maxForMe = MyGetMaxUsers();
   if(maxForMe > PA_CountConnectedUsers())
      . . .

See Also

PA_GetMaxAllowedUsers.

Error Handling

PA_GetLastError always returns eER_NoErr


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