Tutorials to .com


ASP.NET Development Articles


Can't Find What You're Looking For?

Tutorials to .com » Dotnet » Development » Array of powerful features (asp + procedure array function calls)

Array of powerful features (asp + procedure array function calls)

Print View , by: iSee ,Total views: 9 ,Word Count: 270 ,Date: Fri, 21 Aug 2009 Time: 10:07 PM

Tofu http://www.asp888.net technical points

Array of powerful features (asp + procedure array function calls)
Array initialization: We use very simple to create a new keyword to an array of ArrayList object to the item assignment, ArrayList methods Add our simple to use as long as you can get the size of the array: count method, for what we do see the following example
<%
dim arr as new ArrayList
arr.Add (1)
arr.Add (3)
arr.add (2)
arr.add (445)
arr.add (223)
arr.add (112)
response.write (cStr (arr.count))
%>
Procedures for the return of this paragraph 6 should be
If we let him show all of the data, it should be
<%
for i = 0 to Arr.count-1
response.write (arr.item (i))
next
%>
We implement this procedure, we will find that the data is not shown in order, we can sort by calling the method, making the array into a sorted array
<%
arr.sort ()
for i = 0 to Arr.count-1
response.write (arr.item (i))
next
%>
Through a few examples of this, we have found that in asp.net, we have a powerful array processing object, I would like to demonstrate is the power of the object of the tip of the iceberg, we can see to help get the Vs7 beta1 more surprises.

Google
 

Rating: Not yet rated

Comments

No comments posted.