
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_b_id( <cobject>, <ntype> )
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_B_ID( <cObject>, <nType> )
Parameters
<cObject>
Name of the object.
<nType>
Object type.
Returns
Bindery ID (user id) of the specified object. The value is returned as
an eight-byte hexadecimal string.
If the specified object is not found, then a null string is returned.
Description
The bindery ID is analogous to the object's record pointer in the
bindery and has no relation to the object's Internet address.
NetWare object types are listed below.
Value Object type
-1 Wild card (permitted only in searches)
0 Undefined
1 User
2 Group
3 Print queue
4 File server
6 Gateway
7 Print server
38 Remote bridge
Examples
? N_B_ID('DON', 1)
0D000003
? CH_VALH(N_B_ID('DON', 1))
218103811
// Find current user's mailbox directory.
cID = N_B_ID(N_WHOAMI(), 1)
// Trim leading zeros from the hex value.
DO WHILE LEFT(cID, 1) = '0'
cID = RIGHT(cID, LEN(cID) -1)
ENDDO
? 'Your mailbox directory is ' + cID
Your mailbox directory is D000003
See Also: N_B_NAME() N_B_TYPE()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson