PropertyObject.DeleteElements

Syntax

PropertyObject.DeleteElements( arrayOffset, numElements, options = 0)

Purpose

Deletes one or more elements of an array object.

Remarks

This method is valid only for one-dimensional array objects. Use the PropertyObjectType.ArrayDimensions property to change the size of multi-dimensional array objects.

To insert a new array element in a one-dimensional array at the specified offset, use the Set_ByOffset methods of the PropertyObject class and specify the PropOption_InsertElement flag.

Parameters

arrayOffset As Long

[In] Specifies the array offset of the first element to delete.

numElements As Long

[In] Specifies the number of elements to delete.

options As Long

[In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options.

This parameter has a default value of 0 .

See Also

PropertyObject.GetNumElements

PropertyObject.Type

PropertyObjectType.ArrayDimensions

PropertyOptions

Thread Safety of the PropertyObject API and TestStand Variables