Description
Determines if a file is locked or not.
Syntax
Function IsLocked(file)
file (input) - the file you want to check
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 FunctionSee also
'---------- 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
Platform Objects and Methodstarget.file.GetTexttarget.file.IsTextPDFtarget.file