Function NnetCrtObj() Foundation

Creates a new bindery object.

Syntax
NnetCrtObj( <cObjectName>             , ;
            [<nObjectType>]           , ;  // Default: OBJ_USER
            [<nDynamic>]              , ;  // Default: 0
            [<nSecurity>]             , ;  // Default: 49
            [<cFileServer|nConnectID>]  ;  // Default: NnetSname()
          ) --> lSuccess
Return

Returns .T. if a new object is created, otherwise .F.. See NnetError() if the creation fails.

Description

<cObjectName>

An uppercase string of max. 48 characters = the object's name.

<nObjectType>

#define constant from XBTNETW.CH beginning with OBJ_ is used to specify the object's type.

<nDynamic>

0 -> Static object (default)

1 -> Dynamic object

<nSecurity>

Eight bit value. The four high order bits define write privileges, the low order bits define read access rights to the bindery object. Each 4 bits in both nibbles have the following meaning:

Bits for high and low nibble of <nSecurity>
Bits set Hex Description
0000 0 Access for any user, even if not logged in
0001 1 Access for all users logged in to the file server
0010 2 Access for users logged in using a password
0011 3 Access for users with supervisory rights
0100 4 Access for the network operating system only

The default is 49 decimal (00110001 binary) giving write access to supervisors and read access to any user logged in to the file server.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.