[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETOBJTYP()
 Determines the object type of an object ID
------------------------------------------------------------------------------
 Syntax

     NNETOBJTYP(<NId>, [<cServer>|<nConId>]) --> nObjType

     Netware: 2.2 and 3.11

 Arguments

     <NId>  Designates a bindery object ID.  For efficiency reasons, the
     ID must be passed in the high-low format (see the Introduction to this
     chapter).

     <cServer>  Designates the name of the file server for which the
     bindery is accessed.  Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NETOBJTYP() returns the type of the bindery object, specified by <NId>
     in the high-low format.  If an error occurs, the function returns 0.

 Description

     NOVELL NET OBJECT TYPE
     Within a file server, each bindery object is given a unique object ID
     with a length of four bytes.  With NNETOBJTYP(), you can determine the
     type of the related bindery object.  NNETOBJTYP() can be used in
     conjunction with functions that return an object ID in the high-low
     format (for example, NNETRDSET()).

 Examples

     Read the property SECURITY_EQUALS of user MIKE, and return the object
     names and types of the members (the SECURITY_EQUALS property contains a
     list of objects to which an object is security-equivalent):

     #include "ctnnet.ch"

     aIn=NNETRDSET('MIKE',OBJ_USER,'SECURITY_EQUALS')
     FOR i=1 TO LEN(aIn)
     ?  NNETOBJNAM(aIn[i])
     ?? IF(NNETOBJTYP(aIn[i])=OBJ_USER,'User','Group')
     NEXT i

See Also: NNETOBJNAM() NNETRDSET()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson