How to access structures element using index

In reply to logie:

Thanks, I can use this approach,