01-26-2016 09:25 AM
I try to resize a 1dimensional array in Teststand via AvtiveX using SetNumElements() with oprion 0x00.
The array is resized but its new size = OldSize + NewSize. EG: array has 3 elements and I resize to 5, it will have 8 elements in the end.
How to resize and array?
How to empty an array?
Solved! Go to Solution.
01-26-2016 01:57 PM
Which version of TestStand are you using? When I try what you are saying in a statement step my array resizes correctly:
SetNumElements(Locals.MyArray, 😎
Are you doing this in an ActiveX step or a code module?
01-27-2016 01:33 AM
I am using TS 2012 5.0.0.0.252 and I am using Active X.
01-27-2016 02:26 AM
I have made it work somehow...
I am not sure how I got the resize to behave that way, but probably I had an Ignored!! error in other substeps I was using before SetNumElements.
It works now like expected.