08-05-2022 06:16 AM
I need to change the order of the ResultList at the end of the sequences
I need to reorder of the ResultSet Array at the end of the sequences. Any way is fine (API TestStand, F (x) Statement). Any Idea?
Solved! Go to Solution.
08-09-2022 04:02 AM
I use this expression to reorder the model plugin configuration (move index 0 to the end of the Plugins array). You can replace the Plugins array with yours and play with the expression a bit.
Parameters.ModelPluginConfiguration.Plugins.SetPropertyObjectByOffset(GetNumElements(Parameters.ModelPluginConfiguration.Plugins), PropOption_InsertElement | PropOption_NotOwning, Parameters.ModelPluginConfiguration.Plugins[Parameters.ModelPlugin.Base.RuntimeVariables.ProcessorIndex]),
Parameters.ModelPluginConfiguration.Plugins.DeleteElements(Parameters.ModelPlugin.Base.RuntimeVariables.ProcessorIndex, 1)
So something like this:
<AnArray>.SetPropertyObjectByOffset(
<NewIndex>,
PropOption_InsertElement | PropOption_NotOwning,
<AnArray>[<CurrentIndex>] 'New Value
),
<AnArray>.DeleteElements(
<CurrentIndex>,
1
)
08-22-2022 03:49 AM
I apologize for the delay, I had found another solution, but this is simpler and therefore functional !!!
Thanks Bravo!!!