title: VBSCRIPT arrays keys
body: <p>I'm fairly new to vbscript and I'm struggling a little as I'm more familiar with Javascript. 
  Can someone please give me a hand? </p>
  
  <p>Does vbscript allow the use of named array keys like I have in my example below?</p>
  
  <p>For example I have: </p>
  
  <pre><code>Dim result(3)
  result(age)       = 60
  result(firstname) = "Tony"
  result(height)    = 187
  result(weight)    = 76
  
  msgbox("Age: "    &amp; result(age)       &amp; vbCr &amp;_
         "Name: "   &amp; result(firstname) &amp; vbCr &amp;_
         "Height: " &amp; result(height)    &amp; vbCr &amp;_
         "Weight: " &amp; result(weight)    )
  </code></pre>
  
  <p>The resulting msgbox shows: </p>
  
  <pre><code>  Age: 76 
    Name: 76 
    Height: 76 
    Weight: 76 
  </code></pre>
  
  <p>This seems to assign <em>every</em> element in the result array to 76, which 
  should only be assigned to the "weight" element. </p>
  
  <p>Is this happening because vbscript only accepts integers as the key/ 
  index for arrays? </p>
  
  <p>Any help is greatly appreciated. </p>
  
  <p>Thanks 
  Turgs</p>