G
Guest
I've tried the technique in article 210334 to determine
that a form is dirty because I'm trying to control the
enable state of a "Save" command button -- enabled if form
is dirty, disabled if not.
I've noticed a post that using the Timer event as this
article suggests doesn't work reliably, and I've
encountered some strange behaviour myself, presumably from
the Timer event firing every second for each open form.
This same post suggested using the Dirty event for the
form. I found that I can detect that a form becomes dirty
using the dirty event. What's giving me trouble is if the
user starts to enter or update data and dirties the form,
and then presses escape to discard the changes, which un-
dirties the form -- the Dirty event does not allow me to
detect that the form is no longer dirty.
Does anyone have any suggestions? I can detect an un-
dirtied form via the Timer event, but that takes me back
to some tempermental code.
Thanks in advance...
that a form is dirty because I'm trying to control the
enable state of a "Save" command button -- enabled if form
is dirty, disabled if not.
I've noticed a post that using the Timer event as this
article suggests doesn't work reliably, and I've
encountered some strange behaviour myself, presumably from
the Timer event firing every second for each open form.
This same post suggested using the Dirty event for the
form. I found that I can detect that a form becomes dirty
using the dirty event. What's giving me trouble is if the
user starts to enter or update data and dirties the form,
and then presses escape to discard the changes, which un-
dirties the form -- the Dirty event does not allow me to
detect that the form is no longer dirty.
Does anyone have any suggestions? I can detect an un-
dirtied form via the Timer event, but that takes me back
to some tempermental code.
Thanks in advance...