VBArray.getItem() : VBArray « MS JScript « JavaScript Tutorial






Syntax

vbarray.getItem(index)

    vbarray.getItem(indexA, indexB, ..., indexN)

The getItem() method returns the value at the index.

<html>
    <script LANGUAGE="VBScript">
    <!--
    Function myVBArray()
      Dim i
      Dim j
      Dim k
      k = 1

      Dim myArray(1, 1)
      For i = 0 To 1
        For j = 0 To 1
          myArray(j, i) = k
          document.writeln(k)
          k = k + 1
        Next
        document.writeln("<hr>")
      Next
      myVBArray = myArray
    End Function
    ' End Hide -->
    </script>
    <script language="JScript">
    <!--
    var myArray = new VBArray(myVBArray());
    alert(myArray.getItem(1,1));
    -->
    </script>
</html>








32.29.VBArray
32.29.1.VBArray
32.29.2.VBArray.dimensions()
32.29.3.VBArray.getItem()
32.29.4.VBArray.lbound()
32.29.5.VBArray.toArray()
32.29.6.VBArray.ubound()