Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nbname()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NBNAME()
 Reads a NetBIOS name from the name table of a workstation
------------------------------------------------------------------------------
 Syntax

     NBNAME(<nPos>,[<cStatName>]) --> cName

     Netware: 2.2 and 3.11

 Arguments

     <nPos>  Designates the position in the local name table that is
     read.

     <cStatName>  Designates a station name of the workstation from which
     the name table is read.  The default value specifies the local
     workstation.

 Returns

     NBNAME() returns the NetBIOS name on position <nPos> in the local name
     table of <cStatName>.  If an error occurs (for example, if <nPos> is not
     used or <cStatName> cannot be found), the function returns an empty
     string.

 Description

     Each NetBIOS workstation keeps a local name table with up to 20 NetBIOS
     names.  NBNAME() allows you to determine the names on each position of
     the table.  The names can be determined for the local workstation or for
     any workstation in the network, if you pass a NetBIOS station name
     <cStatName>.

     NBNAME() always returns a 15-character string.  All NetBIOS names are
     internally padded with blanks to a length of 15 characters.

 Examples

     .  Read the name table of the local workstation:

        FOR i = 1 TO 20
           ? NBNAME(i)
        NEXT i

     .  Read the name table of workstation MIKE:

        FOR i = 1 TO 20
           ? NBNAME(i,"MIKE")
        NEXT i

See Also: NBADDGROUP() NBADDNAME() NBDELNAME() NBNAMECNT() NBNAMESTAT()

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