IsLocked
Description
Description
Determines if a file is locked or not.
Syntax
Syntax
Function IsLocked(file)
file (input) - the file you want to checkĀ
Return value
Return value
This function returns a boolean true/false value.
Sample
'---------- Start ----------
Function Start
if target.file.IsLocked( "C:\FileTestFolder\trgFileSample.txt" ) = true then
trg.Message( "It is locked" )
else trg.Message( "It is not locked" )
End Function
See also