version 2003
PA_GetIndGroupName (index; userKind; groupName)
Parameter | Type | Description | |
index | long | Nth group of type kind | |
userKind | PA_UserKind | Kind of users | |
groupName | char * | Name of the indexTh group |
Description
The routine PA_GetIndGroupName fills the string buffer pointed to by groupName with the name of the indexTh group created by the designer or 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, groupName 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
No reference.
Error Handling
Use PA_GetLastError to see if an error occurred