-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
It seems if the length of the table is less or equal than 3, the Splice method erases the last value even when asking not to.
To Reproduce
Steps to reproduce the behavior:
Sub TestSplice()
Dim colData As BetterArray
Set colData = New BetterArray
colData.LowerBound = 1
colData.Push "1", "2", "3"
'Items are "1", "2", "3"
Debug.Print colData.Length
'Length is 3
colData.Splice 2, 0, ""
'Items are "1", "", "2"
'Expected Items are "1", "", "2", "3"
Debug.Print colData.Length
'Value is 3 instead of 4.
End SubOperating System:
- Windows
Host Application:
- MS Excel
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working