IsLocked

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 Function

See also

Platform Objects and Methods

target.file.GetText

target.file.IsTextPDF

target.file