VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Test IsDirty

by Brad Skidmore (4 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (1 Votes)

(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).

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)
Code 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.

Rate Test IsDirty

Download Test IsDirty

Download Test IsDirty (5 KB)

Test IsDirty Comments

No comments have been posted about Test IsDirty. Why not be the first to post a comment about Test IsDirty.

Post your comment

Subject:
Message:
0/1000 characters