[thelist] tip (was Re: VBScript Arrays: Can... )
Warden, Matt
mwarden at odyssey-design.com
Wed May 23 14:52:50 CDT 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> 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(); }
> </script>
This needs to be a tip!
<tip author="Filip Salomonsson" rewrittenby="mwarden">
If you want to determine the number of dimensions in a given VBScript
or JScript array in ASP, try adding this function to your script,
which you can call from both JScript and VBScript in your ASP file:
<script language="JScript" runat="server">
function UDim(vbarr) { return vbarr.dimensions(); }
</script>
</tip>
- --
mattwarden
mattwarden.com
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBOwwVGXgH0dUmEhrcEQJNxwCfYZ4QO3iJv1kU1DuaQ9bnWhklaqwAoMqi
XRA35TgcDszigtipINseNgKU
=mdnL
-----END PGP SIGNATURE-----
More information about the thelist
mailing list