[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
NNETOBJNAM()
Determines the object name of an object ID
------------------------------------------------------------------------------
Syntax
NNETOBJNAM(<NId>, [<cServer>|<nConId>]) --> cObjName
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
NETOBJNAM() returns the name of the bindery object, specified by <NId>.
If an error occurs, the function returns a null string.
Description
NOVELL NET OBJECT NAME
Within a file server, each bindery object is given a unique object ID
with a length of four bytes. With NNETOBJNAM(), you can determine the
name of the related bindery object. NNETOBJNAM() can be used in
conjunction with functions that return an object ID in the high-low
format (for example, NNETRDSET()).
Example
Read the property SECURITY_EQUALS of user MIKE, and return the object
names 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])
NEXT i
See Also:
NNETOBJTYP()
NNETRDSET()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson