NewPropertyObjectType Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.NewPropertyObjectType ( ValueType, TypeName = "", ElementType = NULL, IsObject = True)

Return Value

PropertyObjectType

Purpose

Creates and returns a new PropertyObjectType object.

Remarks

You can use this method to create an object to assign to the AdditionalResult.Type property.

Parameters

ValueType As PropertyValueTypes

[In] Specifies the value of the PropertyObjectType.ValueType property of the object this method creates. If you pass PropValType_NamedType, this method uses the type you specify with the TypeName parameter to determine the values of the properties of the PropertyObjectType object this method creates.

TypeName As String

[In] Specifies the value of the PropertyObjectType.TypeName property of the object this method creates. If you pass PropValType_NamedType for the ValueType parameter, pass the name of a currently loaded type. Otherwise, pass an empty string. If you specify a type name, this method uses the type you specify to determine the values of the properties of the PropertyObjectType object this method creates instead of the other parameters you pass to this method.

This parameter has a default value of "".

ElementType As PropertyObjectType

[In] Specifies the value of the PropertyObjectType.ElementType property of the object this method creates. Pass a PropertyObjectType object if you pass PropValType_Array for the ValueType parameter. Otherwise, pass NULL. Typically, you make another call to this method to create an object to pass for this parameter.

This parameter has a default value of NULL.

IsObject As Boolean

[In] Specifies the value of the PropertyObjectType.IsObject property of the object this method creates. Pass False for this parameter only to create an object for the type of an element of an array of numbers, Boolean values, strings, or references.

This parameter has a default value of True.


See Also

PropertyObjectType

WAS THIS ARTICLE HELPFUL?

Not Helpful