VBScript : alternative way of resizing an Array ?
Hi,
Would someone please be able to tell me if there is a simple way of deleting an item in an array and resizing it [keeping the old values] ?
For instance, I have an array defined as :
Dim myArray(3)
myArray(0) = "A"
myArray(1) = "B"
myArray(2) = "C"
myArray(3) = "D"
I would like to remove myArray(1), and resize the whole thing back to myArray(2) [keeping the old content].
myArray(0) = "A"
myArray(1) = "C"
myArray(2) = "D"
Do I have to make a function for that or is there some methods I missed regarding the use of arrays ? Thanks for your advice.
|