Foreach loop for struct of arrays

In reply to dave_59:

Ok, I see the problem now - memory has not been allocated anywhere. That was a hole in my code there. I have done that now!!

Thanks!!