<i><font color="#663300"> Are you using thisform.New() to add the new record?
It sounds like Ischanged() is not detecting a change to the view and therefore not requiring an update. </font></i>
Yes, Graeme, I am using <b>Thisform.New()</b> to add a new record.
And debugging the code I notice that if I press the ESC key, <b>Thisform.keypress</b> gets it and executes <b>Thisform.QueryUnload()</b>, and is in this method where <b>Ischanged()</b>is asked for the changes of the data. After saving or not the changes, the QueryUnLoad() executes <b>Thisform.Release</b>.
But if I just press the <b>Close</b> button of the toolbar, it just calls Thisform.Release, and doesn't calls QueryUnload(), etc.
Ok, I can code for it, but I just want to know if there's any reason for that behavior, or if there's any <i>"CB Standard"</i> way to do it.
Thanks Miquel Angel Guerrero maguerrero .AT. kernelicsa D.OT com
©2001 Miquel Angel Guerrero |