04-21-2016 03:02 AM
Hello,
i have a 2D array type text that should be set to a special value.
Dimension is [5][50] where the 5 is the MyIndex parameter of the socket in the BatchModel.
Currently i am doing this in a for loop that loops 50 times for each socket and in the loop i set the array to the value.
StationGlobals[MyIndex][Counter] = "value".
Is there any faster way to do this?
Thx
Solved! Go to Solution.
04-21-2016 09:36 AM
Sure, you can use the following:
SetElements(Locals.MyArray,5)
That expression will assign every element of Locals.MyArray to the number 5. If you want, you can specify an optional parameter to assign the value to only part of the array.