[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 132
  • Last Modified:

Determine changes in text boxes

I have several text boxes on one form. How can I loop through each text box on the form and determine if there were any text changes. I only have 30 points to post.
0
Draner
Asked:
Draner
1 Solution
 
Neo78Commented:
Are the text boxes initially empty? or they already have some info in them?
0
 
Ryan ChongCommented:
Hi,

Initially copy the content of the TextBoxes' Value into their Tag (in Form_Load() event). When running the program, Check the Tag and Value, if different then this means user make some changes, or simply define use a variable (maybe True or False), make it True if the Change event of TextBoxes is fired.
0
 
DranerAuthor Commented:
Neo, the text boxes have info in them
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
DranerAuthor Commented:
Neo, the text boxes have info in them
0
 
rspahitzCommented:
Couldn't you just add code directly into the Change event procedure?  Or do you want to handle all of them in one block/batch rather than as they change?
0
 
Arthur_WoodCommented:
YOu could always set a Form level flag: blnTXTChange as Boolean

then, for each TextBox on the form, it the Change Event:

Private Sub ANYTEXTBOX_Change() ' for EACH TEXTBOX
   blnTXTChange = True
End Sub

then you can test blnTXTChange and know if ANY Textbox had a change to its value.

Hope this is clear.

Artur Wood
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now