FileLocked returns True if the file specified by aFilePath is locked.
Depending on the program, a file may or may not be locked once opened, to maintain a form of version control and to mitigate any saving conflict.
Use this function to indicate whether another program is accessing the file in a manner that does not allow sharing.
Declaration: Function FileLocked(aFilePath : string) : boolean
An example.