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

ResetTypeInstances Method

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View NI TestStand Product Info

Syntax

Engine.ResetTypeInstances ( typeParam, resetTypeInstancesOptions = ResetTypeInst_ResetFlags | ResetTypeInst_ResetValues)

Return Value

Boolean

True if the method finds any type instances, False if it finds none.

Purpose

Searches for all instances of the specified type definition in the TestStand Engine and then sets their values and flags to the default value and flags for that type.

Remarks

This method allows you to apply the value of a type definition property to all of its instances. Normally, when you change the value of a type definition property, the values in its instances do not change.

Note  Calling this method does not affect instances in files on disk that are not open. Also, this method ignores the subproperties of typeParam unless you pass ResetTypeInst_RecurseSubProperties as an option.

Parameters

typeParam As PropertyObject

[In] This parameter can be a type definition or a subproperty of a type definition.

resetTypeInstancesOptions As long

[In] Pass one or more ResetTypeInstancesOptions constants to specify different options. Use the bitwise-OR operator to specify multiple options. If you want to reset the values/flags of all of the subproperties of a type's instances, you can pass ResetTypeInst_RecurseSubProperties using the bitwise-OR operator with ResetTypeInst_ResetFlags or ResetTypeInst_ResetValues.

This parameter has a default value of ResetTypeInst_ResetFlags | ResetTypeInst_ResetValues.


See Also

PropertyObject.DisplayPropertiesDialog

ResetTypeInstanceOptions


Resources


 

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