Hey all,
So I've had some experience with C++ style programming and I'm trying to figure out the best way to declare an array of numbers for each recipe that is loaded. Currently have a reference array but its a pain to make adjustments or even see it with all the other attributes in the CASE structured text I'm using.
What I'm trying to replicate from C++
int Array[5] = {2, 4, 5, 3, 1};
but the only way I can figure to do it,
array[0] := 2;
array[1] := 4;
array[2] := 5;
...
etc.
Really hoping someone knows a cleaner way or has some clever tricks I should consider.
Thanks
So I've had some experience with C++ style programming and I'm trying to figure out the best way to declare an array of numbers for each recipe that is loaded. Currently have a reference array but its a pain to make adjustments or even see it with all the other attributes in the CASE structured text I'm using.
What I'm trying to replicate from C++
int Array[5] = {2, 4, 5, 3, 1};
but the only way I can figure to do it,
array[0] := 2;
array[1] := 4;
array[2] := 5;
...
etc.
Really hoping someone knows a cleaner way or has some clever tricks I should consider.
Thanks