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_type( <nid> | <hid> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_B_TYPE( <nId> | <hId> )


Parameters

<nId>
Bindery ID of object in numeric form.

<hId>
Bindery ID of object as a hexadecimal string.


Returns

Type of the bindery object as a numeric value.

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



Description

The argument is the bindery ID for the object, passed in either numeric 
form or as a hexadecimal string.

If a hexadecimal string is passed, the string must have 0-9 as the 
first digit or be prefixed with 0. That is,

N_B_NAME('C000008')   // not OK
N_B_NAME('0C000008')  // OK


The bindery ID is analogous to the object's record pointer in the 
bindery. It has no relation to the object's Internet address.


Example

Whatzit('3D0000F1')
.
.
.
Function Whatzit( cID )
   ? 'Name: ' + RTRIM(N_B_NAME(cID))
   ? 'Type: ' + LTRIM(STR(N_B_TYPE(cID)))
RETURN
Name: TEST
Type: 3


See Also: N_B_ID() N_B_PRTYPE()

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