|
Post by arryman on Jan 24, 2022 3:39:36 GMT -5
Thanks for the further info. I'm dealing with dynamic radio traffic in fluid groups. My list has to be variable in size, capable of appending or inserting new data at any point, deleting, or amending data, and sorting itself. I agree with the possibility of two arrays, but that is what I'm doing in a less sophisticated manner already.
|
|
|
Post by tsh73 on Jan 24, 2022 4:36:41 GMT -5
(first question) How many lines you expect in your list? Because if it works fast enough just by copying whole sfuff into other array and back, I wouldn't bother (second) Are you going to show single record, or several records in order, or may be all records? Do you show stuff in listbox? if so you will need array anyway, and in order you want it So any list will be traverced and transferred into array, and this array will be shown.
|
|
|
Post by arryman on Jan 24, 2022 6:42:25 GMT -5
Anatoly,
My list varies in length from 1 to maybe 30. I think I'll stay with the approach of just copying the array back and forth, as you suggest. It works so fast that the user has no idea how much is going on behind the scenes - it appears almost instantaneous. Thanks for the advice.
|
|
|
Post by meerkat on Jan 24, 2022 6:53:40 GMT -5
I guess I'm missing something. Everything you are tying to do is already done in SQLite. You can insert, delete, change, sort plus other options. Based on all the things you are doing to get it to work, it will probably be faster and less code.
Just an option you may consider!!..
|
|