F Frank Cazabon Member Licensed User Longtime User Jul 11, 2014 #1 I have a simple query being called by DBUtils like this: Code: Copy Dim x As List x = DBUtils.ExecuteMemoryTable(SQLLite, "SELECT DeliveryHistory.* FROM DeliveryHistory",Null,0) When I look at x in the Watch list, I get x having a size of 1 and my 0 element has the data I expect, but why do I see elements 1 to 11 there? (See the attached image) Attachments x.png 13.2 KB · Views: 394
I have a simple query being called by DBUtils like this: Code: Copy Dim x As List x = DBUtils.ExecuteMemoryTable(SQLLite, "SELECT DeliveryHistory.* FROM DeliveryHistory",Null,0) When I look at x in the Watch list, I get x having a size of 1 and my 0 element has the data I expect, but why do I see elements 1 to 11 there? (See the attached image)
Erel B4X founder Staff member Licensed User Longtime User Jul 13, 2014 #2 Ignore these null elements. You are seeing an "implementation detail" of List. It uses an array and it reserves some empty elements to allow you to add items without allocating a larger array. Upvote 0
Ignore these null elements. You are seeing an "implementation detail" of List. It uses an array and it reserves some empty elements to allow you to add items without allocating a larger array.