by Naveen Priyankara Embuldeniya (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 19th June 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This code will identify the changes of data in a Textbox and do something accordingly.
API Declarations
Private flDataChanged as Boolean
If Text1.DataChanged = True Then
Text1.Datachanged = Not Text1.Datachanged
flDataChanged = True
Else If Text2.DataChanged = True Then
Text2.Datachanged = Not Text1.Datachanged
flDataChanged = True
Else If Text3.DataChanged = True Then
Text3.Datachanged = Not Text1.Datachanged
flDataChanged = True
End If
End Sub
Private Sub cmdSave_Click()
Dim ans As vbMsgboxResult
'Call the subroutine to check the changes
CheckData
If flDataChanged Then
ans = MsgBox "Your Data has been Changed " & vbCrLf & _
"Save Now ?" , vbYesNo
If ans = vbYes Then
'Code to Save Changes
End If
End If
End Sub
No comments have been posted about This code will identify the changes of data in a Textbox and do something accordingly.. Why not be the first to post a comment about This code will identify the changes of data in a Textbox and do something accordingly..