SetLockState Method

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Requires: Base Development System

Class: VI Methods (ActiveX)

Sets the lock state of a VI. If Interactive is FALSE (default), you can use Password to unlock a password-protected VI or set the password of an unprotected VI. If Interactive is TRUE, LabVIEW ignores Password and displays a dialog box that prompts you to change the lock state.

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

WAS THIS ARTICLE HELPFUL?

Not Helpful