"Fatih" wrote in message <firstname.lastname@example.org>... > Hi, > > I'm trying to assign multiple values to second element of a field of multiple structure elements. Better I give you an example to explain that: > > let's say the values are = 1,2,3 > structure is = a > field is = s > > then the result should look like this: > a(1).s(2) = 1 > a(2).s(2) = 2 > a(3).s(2) = 3 =================
My answer to posts like these is always to question the way the data is being organized, so I'll do that again here.
Given what you have above, it looks lik all a(i).s are the same size. If some a(j).s is of length 1, for example, this makes no sense. Assuming this to be the case, it probably makes sense for you to make 'a' a scalar struct instead and do