SetLockState Method

LabView ActiveX Properties and Methods

SetLockState Method

Installed With: Base Package

Class: Library Methods (ActiveX)

Sets the level of editing permission for a LabVIEW project library, including the password.

This method is similar to the Protection box on the General Settings page of the LabVIEW Project Library Properties dialog box.

Syntax

object.SetLockState(lockState, [Interactive], [Password], [putInCache])

Parameters

NameTypeDescription
lockStateVILockStateEnumLock state.
InteractiveBooleanSpecifies whether to display a dialog box that prompts you to change the lock state. The default is FALSE.
PasswordStringIf lockState is Password-protected, Password is the new password. If you are changing lockState from Password-protected, Password is the old password. The default is an empty string.
putInCacheBooleanIf lockState is Password-protected, putinCache specifies whether to place the new password in the cache. The default is FALSE.

Return Value

none