Hi
Thanks, I am using a different strategy to achieve how to know when to store the changes back into the DB.
I save as a file locally when I open the data from the database. (I did this anyway so the Tab Caption would have the correct name and to do comparisons with what is in the DB)
I save the local file again every time the user saves to the DB
I listen to the notification NPPN_FILEBEFORESAVE and save the data to the database. (user click the Save icon etc)
So if the user closes the application or a file that NPP knows needs saving and NPP asks if the user wants to save then the save is also stored into the DB.
Thanks
Jeff