Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_b_ismember( <cowner>, <ntype>, <cproperty>, <cmember>, <ntype> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_B_ISMEMBER( <cOwner>, <nType>, <cProperty>, <cMember>, <nType> )


Parameters

<cOwner>
Name of an object.

<nType>
Type of the object.

<cProperty>
Set property of the object.

<cMember>
Name of the member object in question.

<nType>
Type of the member object.


Returns
Logical true if member object is part of set, otherwise false. If the 
function returns false, you can call N_ERROR(), which will return the 
NetWare error code.


Description

Determines if a bindery object is a member of a specified set.

Note Any bindery object type can be an owner or member of a set.

Object Types
Value      Object type
 1         User
 2         Group
 3         Print queue
 4         File server
 6         Gateway
 7         Print server
38          Remote bridge


Set Properties
Name                  Owner      Member
GROUPS_I'M_IN         User       Groups an object
                                 belongs to.
                                 Usually attached
                                 to user or group
                                 objects.

GROUP_MEMBERS         Group      Members of a
                                 user group.
                                 Usually attached 
                                 to group 
                                 objects.
                                 Note that for 
                                 every entry in a
                                 GROUP_MEMBERS 
                                 set, there must
                                 be a corres-
                                 ponding entry in
                                 a GROUPS_I'M_IN
                                 set.

Q_OPERATORS          Prnt queue  User/group who
                                 can reorder or
                                 delete any job 
                                 in the queue.

Q_SERVERS            Prnt queue  Print server
                                 that can 
                                 service jobs in
                                 the queue.

Q_USERS              Prnt queue  User/group who
                                 can place jobs in
                                 the queue. 
                                 Usually EVERYONE.

SECURITY_EQUALS      User        User/group with
                                 same security
                                 level.

OPERATORS            File srver  Console
                                 operators.


Example

// Verify that the currently logged in user either
// is SUPERVISOR or has access equivalent to SUPERVISOR
IF !(N_WHOAMI() = 'SUPERVISOR'
     .OR. N_B_ISMEMBER(N_WHOAMI(), 1,    ;
                      'SECURITY_EQUALS', ;
                      'SUPERVISOR', 1    ) )
   ? 'User not Supervisory level. Cannot proceed.'
   RETURN
ENDIF



See Also: N_B_MEMBERS()

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