Closed thenhustey closed 3 years ago
Hi @thenhustey,
Thanks so much for the bug report. After a fair amount of testing I found the bug - a simple silly error on my part. Concat() was calling this.Items
instead of InternalItems
.
This is fixed in the following commit: https://github.com/Senipah/VBA-Better-Array/commit/50e119abef7f92580ba7e746c42f3d7526822099
The change is released in 1.7.4
Please let me know if you still have issues and thanks again. 👍
Describe the bug Using a 1D BetterArras for storing Filepaths from folder with recursion. Each (sub)folder returns its own BetterArray, which is "merged" with BetterArray from parent folder using Concat method.
Result 1D BetterArray contains a lot of empty Items.
To Reproduce Consider function:
Expected behavior 1D BetterArray filled with Filepaths (As String). For each file in given folder (except hidden and system files. Screenshots This are BetterArrays going to Concat -
Call TempArray.Concat(SubFolderArr.Items)
(remember:TempArr = TempArray.Clone
)This is how TempArray looks like after
Concat
(seeItems(40..63)
)Operating System:
Host Application:
Additional context I debugged it step by step from my Concat call (line 36 in my code snippet). And when I stepped on your line 1402 (BetterArray.cls v1.7.3), found that
Me.Items
has 40 Items BUTThis.Items
has 64 items - all extra items are Empty.