>Where is the NODEFAULT keyword in the MSDN help? Using Index tab to search for the word, it points me to the right keyword, but pressing ENTER, it points me to DEFINE CLASS.
>
>The problem:
>Using VFP6 SP4, NODEFAULT in QueryUnload doesn't behave properly. We don't have this problem in SP3.
>
>The scenario:
>We have a form class. In QueryUnload, we validate the edit status of the form. If it's in EDIT mode and the user want to close the form, a messagebox will appear in the screen asking whether to Save (Yes), Undo (No), or cancel the closing of the form. If the user chooses Yes Or No, all is Ok but if Cancel, closing will not continue but clicking Save or Revert button again, it does not perform the behaviour we want. It doesn't enable or disable the controls which is normally Ok. It seems to me that SP4 fixes some bugs but it creates bugs as well. Any ideas?
>
>Here is the code:
>
>If Thisform.EditMode
> ans = MessageBox("Save changes?",MSG_YES_NO_CANCEL,"Close Form?")
> Do Case
> Case ans = 6
><b> Thisform.SaveEnent(.T.)</b>
> Case ans = 7
> Thisform.SaveEvent(.F.)
> Otherwise
> Nodefault
> Endcase
>Endif
>
>Above works fine in SP3.
Hi Jess,
I've noticed one misspelling (see in bold). Could it be a problem?
Thanks in advance.
If it's not broken, fix it until it is.
My Blog