R
robert.waters
I have several unbound data input forms, and in each I have a boolean
flag variable to indicate whether or not the user has saved their
input. When the form closes, I check this variable; if it is false, I
ask the user if they're sure that they want to continue closing and
lose the data.
The unfortunate consequence of this method is that if you open the
form and then close it right away (without entering any data), you are
asked that (at this time pretty irrelevant) question.
Does anyone know what method I could use, besides checking the value
of each of the input controls or setting a flag in the OnEnter or
OnChange event of each input control, to determine if the form is
'Dirty'?
I guess the short version of this question is "How might I implement a
'Dirty' property for an unbound form?"
Thanks!
flag variable to indicate whether or not the user has saved their
input. When the form closes, I check this variable; if it is false, I
ask the user if they're sure that they want to continue closing and
lose the data.
The unfortunate consequence of this method is that if you open the
form and then close it right away (without entering any data), you are
asked that (at this time pretty irrelevant) question.
Does anyone know what method I could use, besides checking the value
of each of the input controls or setting a flag in the OnEnter or
OnChange event of each input control, to determine if the form is
'Dirty'?
I guess the short version of this question is "How might I implement a
'Dirty' property for an unbound form?"
Thanks!