Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

DisplayLockUnlockDialog Method

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View NI TestStand Product Info

Syntax

Engine.DisplayLockUnlockDialog ( dlgTitle = "", dlgMsg = "", propObject = NULL, options = 0, [passwordString = NULL])

Return Value

Boolean

True if you click OK in the dialog box. False if you click Cancel.

Purpose

Launches a dialog box in which you can lock or unlock a PropertyObjectFile, or prompt for a password to perform a lock or unlock operation.

Parameters

dlgTitle As String

[In] Specifies the title of the dialog box. Pass an empty string to use the default title for the dialog box.

This parameter has a default value of "".

dlgMsg As String

[In] Specifies the message in the dialog box. Pass an empty string to use the default message for the dialog box.

This parameter has a default value of "".

propObject As PropertyObject

[In] Pass an object to lock or unlock. The object lock state determines whether the dialog box performs a lock or unlock operation by calling the PropertyObjectFile.Lock and PropertyObjectFile.Unlock methods respectively.

When you pass NULL, the dialog box does not operate on any object. The options parameter specifies whether the dialog box performs a lock or unlock operation. If you pass NULL and perform an unlock operation, you must specify the required password using the passwordString parameter.

This parameter has a default value of NULL.

options As long

[In] Pass any combination of the LockUnlockDialogOptions constants.

This parameter has a default value of 0.

passwordString As Variant

[In/Out] [Optional] Specifies the password that the dialog box expects when you specify LockUnlockDialogOption_Unlock in the options parameter, and returns the entered password from the dialog box when you specify LockUnlockDialogOption_Lock in the options parameter.

This parameter has a default value of NULL.


See Also

AppMainHwnd

LockUnlockDialogOptions

PropertyObjectFile.Lock

PropertyObjectFile.Unlock


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit