C5_NETNAME

 NETNAME()
 Return the current workstation identification
------------------------------------------------------------------------------
 Syntax

     NETNAME() --> cWorkstationName

 Returns

     NETNAME() returns the workstation identification as a character string
     up to 15 characters in length.  If the workstation identification was
     never set or the application is not operating under the IBM PC Network,
     it returns a null string ("").

 Examples

     .  This example demonstrates the NETNAME() result when a
        workstation is started as a network node with a station identifier of
        "STATION 1":

        ? NETNAME()               // Result: STATION 1

     .  This example demonstrates the NETNAME() result when a
        workstation is started as a stand-alone unit:

        ? NETNAME()               // Result: ""

 Files   Library is CLIPPER.LIB.

 

C5 Networking Commands and Functions

DBUNLOCK() :

Release all locks for the current workarea

DBUNLOCK() --> NIL

DBUNLOCKALL() :

Release all locks for all workareas

DBUNLOCKALL() --> NIL

FLOCK() :

Lock an open and shared database file

FLOCK() --> lSuccess

NETERR() :

Determine if a network command has failed

NETERR([<lNewError>]) --> lError

NETNAME() :

Return the current workstation identification

NETNAME() --> cWorkstationName

RLOCK() :

Lock the current record in the active work area

RLOCK() --> lSuccess

SET EXCLUSIVE

Establish shared or exclusive USE of database files

SET EXCLUSIVE ON | off | <xlToggle>

UNLOCK :

Release file record locks set by the current user

UNLOCK [ALL]