PropertyObjectType.ArrayDimensions

Syntax

PropertyObjectType.ArrayDimensions

Data Type

ArrayDimensions

Purpose

Returns the dimensions for a PropertyObject that is an array. Returns zero dimensions for a PropertyObject that is not an array.

Remarks

When changing the dimensions of an array using the ArrayDimensions property, TestStand does not move existing elements to preserve their indices. Indices of elements in the modified array may differ from the original.

To preserve the element indices of one-dimensional arrays, use methods on the PropertyObject interface. Use PropertyObject.SetNumElements to set the size of a one-dimensional array. Use the PropertyObject.Set_ByOffset methods (e.g. PropertyObject.SetValBooleanByOffset ) specifying the PropOption_InsertElement flag to insert new elements into a one-dimensional array. Use PropertyObject.DeleteElements to delete specific elements from a one-dimensional array.

See Also

ArrayDimensions

PropertyObject

PropertyObjectType.ElementType

PropertyObjectType.ValueType

PropertyObject.SetNumElements

PropertyObject.DeleteElements