by Peter Smith >> Thu, 5 Aug 1999 5:11:59 GMT
What Im after is an easy way to determine that something has changed on a form so that I can check at an appropriaet time eg on form close and throw up a dialog box to give the user the chance to save etc
Seems from looking around that there are 2 or 3 main ways to do this.
1/ subclass all controls and then put code in the change event to set a boolean on the parent
form.
2/ Create a string of 'data' from the controls on the form at the start when data is loaded and then again at the end and compare them. Problem I have here is that there is no practical way to generate this that is foolproof - and so the list of controls will need to be manually maintained. Tables and listboxes used in differnet ways mean that its difficult to build the string generically.
3/ Use event mappings sso as to set the change event for all textboxes to your own method. Drawback here is that then you take away the change event for all controls and in some cases you may want it.
Appreciate any thoughts/ideas on this - as all the ways mentioned above have drawbacks.
b