post your comment   print   send to a friend
Rate:   0% | Views: 447
Question categories:  ASP

How can I get a count of the number of dimensions in an array?

There is no native VBScript method for getting the number of dimensions in a VBScript safe array. However, Jscript has such a function to help it integrate with VBScript:

<script language="JScript" runat="server">
function CountDims(arrVBArray) {
return arrVBArray.dimensions();
}
</script>


Uses with this integration function:

<%
Dim arrTest(4, 9)

' Returns 2:
Response.Write CountDims(arrTest)
%>

Customer Feedback
Rate:   0% | Views: 447 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Professional Web Design | Hosting Service    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    ASP
Messages
 

Design your website in minutes!

Aplus.Net's do-it-yourself web design tool, WebsiteCreator, enables you to design your website in under 10 minutes - no HTML knowledge necessary! Fast. Easy. Fun. You can use the FREE version of WebsiteCreator or upgrade to more advanced packages for as little as $6.99/mo. Go to the Design tab in the Control Panel to try it now!
More info...

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. How can I display all of the contents of a single-dimension array?
 
2. Does ASP.Net still recognize the global.asa file?
 
3. Is it possible to run client-side .NET code within a browser?
 
4. What happened to date() and time()?
 
5. How do I display data on a web page using arrays instead of Do...While...MoveNext...???
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest