0

I'm having a difficult time getting the below code to work. It's choking on the testArray[Count] = "asdf" statement. How should this statement be written?

<ul class="product-options--list">
   @Component.Fields.product_links_rtf
   @foreach (var fields in Component.Fields.product_links)
   {
      testArray[Count] = "asdf";                    
   }
</ul>
2
  • What are "testArray" and "count"? please explain a little about your problem and what is the error? Commented Jan 15, 2015 at 19:15
  • 5
    I'm flagging this question for closure as off-topic because it's not really about Tridion. It's just a bug in the questioner's code, and he's found the answer. I don't think any Tridion people are going to profit by it remaining in the site. Commented Jan 20, 2015 at 10:37

1 Answer 1

0

My declaration of the array was incorrect.

1
  • 5
    That's not an answer that someone else can use. Could you please explain how you were declaring it wrong (ideally by including it in the question) and how to do it right (in the answer)? Commented Jan 16, 2015 at 6:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.