PropertyObjectFile.Lock
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
PropertyObjectFile.Lock
Syntax
PropertyObjectFile.Lock( [passwordString])
Purpose
Locks the file. The PropertyObjectFile.Protection property specifies the type of protection for the lock. After reading a protected file, TestStand automatically locks the file. Use the PropertyObjectFile.Unlock method to unlock the file.
Remarks
This method applies only to sequence files. Using this method on other files causes an error. Locking a file causes an error when the PropertyObjectFile.Protection property is set to ProtectedObjectOption_None .
Parameters
passwordString As Variant
[In] [ Optional ] Specifies the password for the lock operation. If no passwordString parameter is specified, the previous password is used. If no previous password was specified, the password is an empty string.