The ASP array mentioned in this article refers to the array using the default language VBScript as the language in ASP.
example:
DimMyArray()
for i = 0 to 10
ReDim Preserve MyArray(i)
MyArray(i)=i
next
subscript
definition
dim arr() 'Define dynamic arraydim arr2(2) 'Define static array
Adding parentheses after the variable name creates an array. If a value is specified in the brackets, it means defining a static array, that is, a fixed-size array.
in code
erase
When erasing a dynamic array, the storage space of the dynamic array is released; when erasing a static array, it only initializes the element values of the array.
dim arr()redim arr(2)
erase arr
alert(ubound(arr))' error, erase has released all the storage space of the dynamic array.
dim arr(1)
erase arr
alert(ubound(arr))' displays 1, erase only initializes the element value of the static array, and the space it occupies is still there.