Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfnet()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfNet()
Performs an operation on the network
------------------------------------------------------------------------------
Syntax:

     dfNet( <cNetOpe>, [<nTimeOut>], [<nRecno>] ) --> lRet

Parameters:

     <cNetOpe>  Operation to perform
     #include "dfNet.ch"
     +----------------------------------+
     | Operation              |   Val   |
     |------------------------+---------|
     | NET_RECORDUNLOCK       |  "unl"  |
     | NET_FILEUNLOCK         |  "unf"  |
     | NET_FILELOCK           |  "dbf"  |
     | NET_RECORDLOCK         |  "rec"  |
     | NET_APPEND             |  "app"  |
     +----------------------------------+
     <nTimeOut> Seconds to wait for concluding the operation. The default
     is dfSet(AI_LOCKREPEATTIME). If the value is 0 the
     function will repeat the operation again and again until it
     succeeds.
     <nRecno>   Record to LOCK or UNLOCK. DEFAULT RECNO()

Returns:

     <lRet> Operation result
     
     NET_FILELOCK   -> FLOCK()   .T. if the file has been locked
     NET_RECORDLOCK -> DBRLOCK() .T. if the record has been locked
     NET_APPEND     -> !NETERR() .F. if an error has occurred

Description:

     Performs a LOCK/UNLOCK operation on a file or record

Example:

     dfNet( NET_FILELOCK ) // File lock

See also:

     ddFileLock(), dfFileLock()

See Also: ddFileLock() dfFileLock()

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