Hi guys, I’m sure there is a simple way of doing this. But i want to copy to an array based on a variable. my example is I have an array called:
PERS num nPickOffsetX{8}:=[1,2,3,4,5,6,0,0];
And a variable called:
VAR num nPatternNum:=0;
I want to copy into one of the two arrays below based on what number is is nPatternNum. So if it was 1 I copy into P1 if it’s 2 I copy into P2
PERS num nPickOffsetX_LT0_P1{8}:=[0,0,0,0,0,0,0,0];
PERS num nPickOffsetX_LT0_P2{8}:=[0,0,0,0,0,0,0,0];
I realise I could use an “IF” function, however I want to be able to do this to an array size of about 150 of which there are 25 different variable in each array. So that is a lot of “IF”'s!
Any help would be appreciated?