JavaScript Tutorial/MS JScript/VBArray — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:24, 26 мая 2010
Содержание
VBArray
Syntax
<source lang="javascript">
var variable = new VBArray(vbarray)</source>
The VBArray object provides access to Visual Basic safeArrays.
Methods of the VBArray Object
Method Description dimensions() Returns the number of dimensions in the array getItem() Returns the item at a specified location lbound() Returns the lowest index value of the dimension in the array toArray() Returns a JScript array from the VBArray passed ubound() Returns the highest index value of the dimension in the array
VBArray.dimensions()
The dimensions() method returns the number of dimensions of the array.
<source lang="javascript">
<html>
<script LANGUAGE="VBScript"> </script> <script language="JScript"> </script>
</html></source>
VBArray.getItem()
Syntax
<source lang="javascript">
vbarray.getItem(index)
vbarray.getItem(indexA, indexB, ..., indexN)</source>
VBArray.lbound()
Syntax
<source lang="javascript">
vbarray.lbound(dimension)
vbarray.lbound()</source>
VBArray.toArray()
The toArray() method returns a valid JScript array from a VBArray.
<source lang="javascript">
<html>
<script LANGUAGE="VBScript"> </script> <script language="JScript"> </script>
</html></source>
VBArray.ubound()
Syntax
<source lang="javascript">
vbarray.ubound(dimension)</source>