title: how to get number range in array element in visual basic?
body: <p>As the title says, I have created an array;</p>
  
  <pre><code>Dim intArray(6) As Integer
  </code></pre>
  
  <p>How can you calculate the range of an element? For example, using numbers, how do you find the range of intArray(3) if you want that element to be between a number range 2 to 5 and on array element intArray(5) to be between the range of 4 to 8? I just want to do this an easy way using loops and with stored arrays if possible, thanks</p>