version 2003
PA_GetIndUserName (index; userKind; userName)
Parameter | Type | Description | |
index | long | nth user of kind userKind | |
userKind | PA_UserKind | Kind of user to access | |
userName | char * | 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
Error Handling
Use PA_GetLastError to see if an error occurred