PA_GetCurrentUserID

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

version 2003


PA_GetCurrentUserID long

ParameterTypeDescription
This command does not require any parameters
Function resultlongID of the current user

Description

The routine PA_GetCurrentUserID returns the ID of the current user.

Please refer to the 4th Dimension Language Reference manual (GET USER LIST) for more information on values and ranges of user IDs.

Example

Get user info.

   void GetSomeCurrentUserInfo(char *name, long *id)
   {
      if(name)
         PA_GetUserName(name);
      if(id)
         PA_GetCurrentUserID();
   }

See Also

GET USER LIST, PA_GetUserName.

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