Harbour Reference Guide

 

FLOCK()

Locks a file

Syntax

FLOCK() --> lSuccess

Returns

<lSuccess> A true (.T.) value, if the lock was successful;otherwise false (.F.)

Description

This function returns a logical true (.T.0 if a file lock is attempted and is successfully placed on the current or designated database.This function will also unlock all records locks placed by the same network station.
Examples
      USE Tests New
      IF FLOCK()
         SUM Tests->Ammount
      ENDIF
      USE
Status

Ready

Compliance

This function is CA-Clipper compatible

Files

Library is rdd

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30