Die Attributfunktion Pack entfernt alle nicht belegten Indizes und veschiebt ggf. die Indizes in Richtung Index 0.
|
Syntax |
|
Pack() |
|
Rückgabewert |
|
Kein |
|
Parameter |
|
Keine |
Beispiel:
Colors.Add({NoValue, NoValue, "red", "blue", NoValue, "green", NoValue, NoValue})
Colors.Pack
MsgBox(Colors.Join & " " & Colors.LowBound & " " & Colors.UpBound)
#zeigt red,blue,green 0 2