Hi!
I must reorder my CD list.
This meaning that I many times to needs to rename the CD and see the contents.
I experienced a bug.
a.) Rename a CD name to another. (CD 100 to CDA-003)
b.) Don't save!
c.) Select the next CD. (CD 101)
d.) Dbl Click to see the content. (CD 101)
e.) The VCD say: "Save the CDA-003?"
f.) Save it.
g.) See the content of the selected CD. (CD 101)
h.) When you click on Favourites then the selected CD in the list is not same that you see before: it is the next. (Not CD 101 but CD 102)
Possible it will be better if you not use "TListView.index" to select after saving but the name or id.
OnSave:
Name = GetSelectedElement.Name
CDName = GetSelectedElement.CDName
Index = GetSelectedElement.Index
Save CDs
if not Locate(Name) and not Locate(CDName) then UseIndex(Index)
Then you will be sure that needed element located.
Thanks for your read:
dd
