Nadya,
>if thisform.IsChanged()
Your problem would be solved if the above method only returned .T. when some real data change had been made.
>E.g. I want to save pending changes if I'm switching pages. It works, but the question is also fired when I click on the same page. I need to prevent this from happening. I spent about 3 last hours trying to overcome the problem, but I'm about to give up.
I don't know about you, but my personal opinion on this is as a user I'd be hugely annoyed if I had to keep answering that question everytime I made a data change and then wanted to switch pages to see something and come back again to finish the prior page.. especially if there is perfectly fine Save button staring me in the face that I can click any time
I have made enough changes to the data to warrant a commit of the data to the database.