Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplest way to prevent Deactivate in the page's Click
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01027764
Message ID:
01027991
Views:
18
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform