DisplayPasswordProtectTypeDefinitionsDialog Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.DisplayPasswordProtectTypeDefinitionsDialog ( typeDefinitions, modifiedTypeDefinitions, dlgOptions = 0)

Return Value

Boolean

Returns True if the user clicked OK in the dialog box and False if the user clicked Cancel. When this method returns True, use the modifiedTypeDefinitions parameter to determine which types, if any, were modified.

Purpose

Displays the Password Protect Type Definitions dialog box, in which you can edit the password protection settings of the types you specify.

Remarks

Note  TestStand supports password-protecting type definitions to deter unauthorized users from editing the types in the sequence editor. However, any TestStand user can continue to programmatically edit a locked type by using the TestStand PropertyObject API. National Instruments does not recommend password-protecting types as the only way of protecting intellectual property.

Parameters

typeDefinitions As Object Array

[In] Specifies an array of type definitions for which you want to edit the password protection information.

modifiedTypeDefinitions As Object Array

[Out] Returns the subset of types you passed to the typeDefinitions parameter the user modified in the dialog box. The dialog box might modify only a subset of the types because some of the types might already use the settings the user specified.

dlgOptions As Long

[In] Specifies the CommonDialogOptions option you want to use. Use the bitwise-OR operator to specify more than one option.

This parameter has a default value of 0.


See Also

CommonDialogOptions

Engine.DisplayUnlockTypeDefinitionsDialog

Password Protect Type Definitions dialog box

PropertyObject.GetTypeDefinitionProtection

PropertyObject.LockTypeDefinition

PropertyObject.SetTypeDefinitionProtection

PropertyObject.TypeDefinitionLocked

PropertyObject.UnlockTypeDefinition

ProtectedObjectOptions

WAS THIS ARTICLE HELPFUL?

Not Helpful