This content is not available in your preferred language.
The content is shown in another available language. Your browser may include features that can help translate the text.
To get information about the size and dimensions of an array using the TestStand API, you can use the following methods: GetDimensionsSizes, GetUpperBounds, and GetLowerBounds. These are all methods of a PropertyObjectType.ArrayDimensions class and are not methods of the actual array. Therefore, you must access the Type.ArrayDimensions class of your array.Assume you have a local 2 dimensional array of numbers called MyArray [0..9][0..3] the following expressions show how to call these functions:
These methods return an array of numbers that contains the size of each dimension in the array. To return the size of the first dimension in MyArray you could use the following code:Locals.MyArray.Type.ArrayDimensions.GetDimensionSizes()
Thank you for your feedback.
You changed your response to Not Helpful
You changed your response to Helpful
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.