title: How would you access a specific index in a My.Settings ArrayList using String Format
body: <p>i've an ArrayList Saved in My.Settings
  i am trying to Access it using some string, Here is the code so you get what i am trying to do</p>
  
  <pre><code>If listBoxEdit1.SelectedIndex &gt; -1 Then
          My.Settings("Sup" &amp; listBoxEdit1.SelectedIndex + 1 &amp; "(1)") = Convert.ToDouble(Margin2TextBox.Text)
      End If
  </code></pre>
  
  <p>i need to specify the value for My.Settings.Sup1(1)</p>
  
  <p>How would you do it?</p>
  
  <p>i've Multiple ArrayLists which goes form  My.Settings.Sup1 to My.Settings.Sup20
  so the <code>listBoxEdit1.SelectedIndex+1</code> specifies the number of the ArrayList but i can't figure out how to get the index</p>
  
  <p>also tried </p>
  
  <pre><code>My.Settings("Sup" &amp; listBoxEdit1.SelectedIndex + 1 &amp;"("&amp; 1 &amp; ")")
  </code></pre>
  
  <p>also</p>
  
  <pre><code>My.Settings("Sup" &amp; listBoxEdit1.SelectedIndex + 1).Item(1)
  </code></pre>