Zoltan.Maric

Accessing elements of a vector in a loop

Discussion created by Zoltan.Maric on Jun 3, 2010
Latest reply on Jun 3, 2010 by Zoltan.Maric

Hello!

Is there any way to access vector elements in a loop with a variable?

I'm looking for something like this:

int16 temp;
for (i = 0; i < 16; i++){
temp.s(i)= i;
}

or do i have to do it like this

temp.s0 = 0;
temp.s1 = 1;
etc.

?

Outcomes