The Pack attribute function removes all non-occupied indexes and moves occupied indexes in direction of zero index, if necessary.
Syntax |
Pack() |
Return value |
None |
Parameter |
None |
Example:
Colors.Add({NoValue, NoValue, "red", "blue", NoValue, "green", NoValue, NoValue})
Colors.Pack
MsgBox(Colors.Join & " " & Colors.LowBound & " " & Colors.UpBound)
#shows red,blue,green 0 2