|
![]() |
![]() |
version 2003
PA_CountConnectedUsers → long
Parameter | Type | Description | ||||
This command does not require any parameters | ||||||
Function result | long | ← | Number 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
Error Handling
always returns
eER_NoErr