meaning of redeim in classic asp

3

What does this mean?

redim preserve VetRede(iCont)

VetRede is a variable declared in asp (I put this, otherwise the body of the question is out of standards, few words), ehehehe!

    
asked by anonymous 26.01.2017 / 11:17

1 answer

4

The redim constructor resizes an array at run time.

It is important that you also know the preserve that is used to preserve existing values.

redim preserve array()

preserve is not required, but it's good to know 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.
    
26.01.2017 / 11:22