Arrays | Repeat when we are using dim, avoid redefining the array. Because you might want to redefine the number with ReDim.
The size of the group. As for this operation, if your machine memory is not very large, it is best to
Think of the worst in the first place. Set the length of the array or the length of the optimal state, in the non
Use ReDim often when necessary. Of course this doesn't mean going to add memory if you're not very much in need of
Words
The following examples illustrate improper use of ReDim
<%
Dim myarray ()
Redim Myarrray (2)
MyArray (0) = "Hello"
MyArray (1) = "Good-bye"
.
.
.
Some other code where and the up needing
More space happens then ...
Redim Preserve myarray (5)
MyArray (2) = "More Stuff"
MyArray (3) = "Even more stuff"
MyArray (4) = "Yet more Stuff"
%>
In fact, at the beginning of the definition of MyArray (5), and later need to use ReDim to increase his size,
This may take up some memory, but it will be much faster.