|
|
Array declaration and definition - ASP
|
Views : 214
|
|
Tagged in : ASP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Arrays in ASP
Aarrays are variables that can store more than one value. They are used to store a series of related information.
Lets create an array called 'ss' that will hold 4 values.
<%
Dim ss
ss=Array("aa","bb","cc","dd")
for loopctr = 0 to ubound(ss)
response.write(ss(loopctr)&" ")
next
%>
UBound(ArrayName):
This function will return the highest element available in an array.
If your array has 10 elements (remember zero base) then the upper bound would be 9.
LBound(ArrayName):
This function will return the lowest element available in an array, in most cases 0.
|
|
By Nirmala, On - 2010-04-15 |
|
|
|