HB_FUNLOCK()
Unlocks part or all of any file
Syntax
HB_FUNLOCK( <nHandle>, <nOffset>, <nBytes> ) --> <lSuccess>
Arguments
<nHandle> Dos file handle
set> Offset of the first byte of the region to be locked.
<nBytes> Number of bytes to be locked.
Returns
<lSuccess> .T. if the lock was removed, else .F.
Description
This function attempts to unlock a region of the file whose file handle is <nHandle>. This is a low level file function. To unlock Harbour data files use the DBUNLOCK() function.
The value of <nHandle> is obtained from either a call to the FOPEN() or the FCREATE() function.
<nOffset> is the offset (from the beginning of the file) to the first of the region to be unlocked. (Offsets from the current position nd of file are not currently supported.)
<nBytes> is the length of the region to be unlocked in bytes.
Examples
refer to tfl.prg
Compliance
Harbour
Platforms
All (64K)
Files
Library is rtl
Seealso
HB_FLOCK(), FOPEN(), FCREATE(), FERROR(), FCLOSE(), DBUNLOCK()
Pingback: Harbour All Functions – H | Viva Clipper !
Pingback: Harbour Network Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !