PDA

View Full Version : how do I embed index into variable name?



kwaugh
September 25th, 2011, 12:30 PM
I know that this will turn into one of those double bracket type answers, but I'm having trouble figuring it out:

These two variables show just fine on their own:

{XM.ChannelName[1]} {xmguide_1}

I want to use the index variable (xmguide_1) INTO the XM.ChannelName array like this:

{XM.ChannelName[{xmguide_1}]}

but all I get is

]}

I'm assuming the first closing } is closing the first { vs. the second one, but I can't figure out how to get around it.

Help!

Thanks,

K