Howto lock file in Files and Directories
by Benoit in gambas-user mailing list
DIM hFile AS File
TRY hFile = LOCK "~/lock"
IF ERROR THEN
PRINT "Already locked by something else!"
ELSE
PRINT "Got locked!"
UNLOCK hFile
ENDIFby Benoit in gambas-user mailing list
DIM hFile AS File
TRY hFile = LOCK "~/lock"
IF ERROR THEN
PRINT "Already locked by something else!"
ELSE
PRINT "Got locked!"
UNLOCK hFile
ENDIF