First step: Try again to see if I can merge the saving to and loading from Behold file routines. This would make coding ultimately less error prone. But the call parameters for saving and loading .ini files are very much different. The parameters I am calling with are from my treeviews on my Organize pages and they are have their own wide/narrow string definition which the .ini files won’t take. Also, the parameter cannot be assigned a value if they are special variables from the treeview. Right now, it seems like it will be easiest if I don’t try to merge the routines. I’ll just have to be careful that the code for saving and loading is equal and opposite.
Now get the “Save” button on the Organize pages working. It can use the same code as the “Save As” command on the main form, which also saves Behold files.
While testing, found a problem: When unmarking a GEDCOM and applying, it gave an invalid integer error. This was simply fixed with by referring to the original GEDCOM number instead of the current one, which becomes null when unmarked.
Certain other problems also need fixing: again related to deleting GEDCOMS, saving and applying the changes. This actually has some pretty convoluted stuff linking GEDCOMS and their families, while taking into account the deleted and unchecked entries - tricky to get just right.