PropertyObject.SetNumElements
- Updated2025-07-21
- 1 minute(s) read
PropertyObject.SetNumElements
Syntax
PropertyObject.SetNumElements( numElements, options = 0)
Purpose
Sets the number of elements of a single dimensional array.
Remarks
This method is valid only for single dimensional arrays. The elements in the array retain their values. Use the PropertyObjectType.ArrayDimensions property to set the number of elements in each dimension of a multi-dimensional array.
Parameters
numElements As Long
[In] Specifies the new number of elements for the array.
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
PropertyObjectType.ArrayDimensions
Thread Safety of the PropertyObject API and TestStand Variables