PA_GetIndUserName

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

version 2003


PA_GetIndUserName (index; userKind; userName)

ParameterTypeDescription
indexlongnth user of kind userKind
userKindPA_UserKindKind of user to access
userNamechar *Name of the indexTh user of type userKind

Description

The routine PA_GetIndUserName fills the string buffer pointed to by userName with the name of the indexTh user created by the designer or by 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;

Depending on default settings or on previous calls to PA_UsePStrings or PA_UseCStrings, userName will be a Pascal or an ANSI C string.

The max length of a user or group name is 31 chars (32 with the length byte or the 0 terminated)

Example

Get the third user created by the administrator:

   PA_GetIndUserName(3, eUK_CreatedByAdministrator, name);

See Also

GET USER LIST.

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