meaning of redim in the classical asp
What does that mean?
redim preserve VetRede(iCont)
VetRede is a variable declared in the asp(I put that, otherwise the question body is out of the standard, few words), eheheheh!
3
1 answers
The redim
constructor resizes an array at runtime.
It is important that you also know the preserve
that is used to preserve existing values.
redim preserve array()
The preserve
is not mandatory, but it's good to know for when you need it.
In a practical way
dim VetRede(5) ' Declara um array com 5 índices
redim VetRede(15) ' Redimensiona o array existente para suportar 15 índices.
redim preserve VetRede(15) ' Redimensiona o array existente preservando dados que porventura possam existir.
4
Author: Daniel Omine, 2017-01-26 10:28:14