Test IsDirty

By | 2002-04-20

(Added this Ziped Project to test the IsDirty Function Plus its easier than Copy Pasting for Ya)
(Update 3/2/2000 I forgot to add the Enum To be used with the MyFormValuesOnLoad() Array But its in there now:)
This code will aide in determining if Data has changed on a form. It serves many purposes. 1. To tell wether or not it is approriate to prompt user if they want to save changes they have made. 2. if the user wants to Reset or Undo changes they have made to a single text box, checkbox, or combobox Or all Controls at once(Works for control arrays as well).

Original Author: Brad Skidmore

Inputs

Need to place a Variant array on each form you want this functionality (To store all the values of those three different control types whith the data after you have loaded the form)

Returns

The Function isDirty will return true if any Value on your form is different from the original values on Load of the form. As well the Isdirty can change a single Control to its original value or All Controls.

Attachments

FileUploadedSize
CODE_UPLOAD3750332000.zip9/3/2020 3:45:00 PM6176
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.