[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
NNETOCNUMS()
Determines all of the stations where a user is logged in
------------------------------------------------------------------------------
Syntax
NNETOCNUMS([<cUser>]) --> cStationList
Netware: 2.2 and 3.11
Argument
<cUser> Designates the name of an object of the type user. The default
value specifies the logged in user.
Returns
NNETOCNUMS() returns a character string where each byte represents a
station number.
Description
NOVELL NET OPEN CONNECTION NUMBERS
With the help of this function you can determine on how many stations,
and on which stations, an object of the type user is logged into the
network. This always relates to the default file server.
The station numbers are returned as a character string; each byte
represents a station number. This character string works very well with
CA-Clipper Tools string functions, such as CHARSORT(), CHARREM(), etc..
If no user name is specified, the function returns the numbers for all
stations that are logged in under the same name as the station being
used. This corresponds to a call of NNETOCNUMS(NNETWHOAMI()).
Note
. Console privileges are required to determine the station
number of another user.
Example
Determine the station numbers where JIM is logged in:
cVar := NNETOCNUMS("JIM")
FOR I = 1 TO LEN(cVar)
? ASC(SUBSTR(cVar, I, 1)) // Station numbers
NEXT I
See Also:
NNETSETSRV()
NNETSTANUM()
NNETCOPRIV()
NNETSPRVSR()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson