Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> grpuserlist()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 GrpUserList()
------------------------------------------------------------------------------
 Purpose:
 List the users in a group.

 Syntax:
 lpszUserName = GrpUserList( lpszGroupName, iIndex )

 Parameters:
 lpszGroupName The group name.
 iIndex        The offset number.

 Returns:
 A character string of length 47.

 The CA-Clipper name for this function is:
 GrpUsrLst()

 Description:
 GrpUserList() is used to obtain a list of members of the group
 lpszGroupName. iOffset is the index into the list and should start at
 1. GrpUserList() should be called repeatedly, incrementing iIndex each
 time until an empty string is returned.

 Returns an empty string on the first call if there are no group members or
 if an error occurs. Otherwise returns a name of a group member until an
 empty string is returned signifying the end of the list.

 Example:
 // To return the list of group members of user group EVERYONE
 // on the current file server:
 iIndex = 1
 lpszMembers = GrpUserList( "EVERYONE", iIndex )
 do while !empty ( lpszMembers )
    ? lpszMembers
    iIndex++
    lpszMembers = GrpUserList( "EVERYONE", iIndex )
 enddo

 Notes:
 GrpUserList() is used to obtain a list of members from the
 GROUP_MEMBERS property value of the group.

 After an empty string is returned, check NWErrorGet().

See Also: SetPropertyIDTest() GrpUserAdd() GrpUserDelete() UsrGroupList()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson