Number of elements in an array?

Romaopporania

New Member
How can you find the number of elements in an array under asp.net? I know is used to be ubound(myArr) but I'm getting a 'Name Ubound is not declared' error message now. <BR><BR>ThanksIs it an ArrayList?<BR><BR>use MyArrayList.Count-1<BR><BR>Aaron...arrayName.GetUpperBound(0)<BR><BR>the "0" passed in the GetUpperBound method refers to the dimension in the array. GetLowerBound is the other method you'd probably use.myArr.Length - 1
 
Back
Top