Wednesday, March 14, 2007

Resize an Array (ASP.NET)



Following example describes how to resize an array

Dim str(10) As String

str(0) = "a"
str(1) = "b"
str(2) = "c"
str(3) = "d"
Response.Write(UBound(str) & "<br>")
Array.Resize(str, 4)
Response.Write(UBound(str) & "<br>")

No comments: