[thelist] VBScript Arrays: Can I Determine the Number of Dimensions via Script?

Filip Salomonsson filip at netdesign.se
Wed May 23 14:13:36 CDT 2001

James Aylard:
>     I am working with VBScript arrays, and can't see
> any way (looking through Microsoft's VBScript 5.5
> Reference) to determine by script how many dimensions
> an array has.

Ironically, the solution is JScript. If you add this function to your code,
you can call it from your VBScript code as UDim(YourArray).

  <script language="JScript" runat="server">
    function UDim(vbarr) { return vbarr.dimensions(); }


More information about the thelist mailing list