After figuring out what to say in the text of the message which is always hard to keep it short yet understandable. For now I decided on: “nnn families from deleted GEDCOMs were not added”, where “nnn” is the number not added. Of course, you have to be careful and say 1 “family” and “was”, not “families” and “were”. Also, that situation won’t occur very often, but I know it will be confusing to the user if it occurs, so I will add a help button to the message box which, when I do my documentation for Version 1.0, will give an explanation of exactly what it means.
In doing so, I notice that the family column of the Name Index is completely updated when the Family is added. If the GEDCOM was deleted, then the whole family column would be wiped clean, which would be alarming to the user. Everything should only update once the Organize changes have been applied, and only the added families should be updated. This didn’t take too long to fix.
And sorting on the family column doesn’t seem to sort correctly. Ah. I forgot to add the SortedID column info with the other code. Easy to fix.
So now, go back and try the GEDCOM deletion again and see if it works. Hmmm. A completely different bug I hadn’t noticed before. If I click with the mouse way to the right of all the text, an index-out-of-range error box pops up. That one wasn’t too difficult. Way out there, no Richview item selected but I was assuming a valid item number. Just skip the code if no item was selected in the ItemSelectedChange procedure.