M MarcDubeau New Member Licensed User Longtime User Feb 14, 2013 #1 I'm new to B4A and would like to know how I can reset a EditText value in a class module from an activity module.
I'm new to B4A and would like to know how I can reset a EditText value in a class module from an activity module.
mangojack Expert Licensed User Longtime User Feb 14, 2013 #2 Welcolm to the forum MarcDubeau .. if your Class EditText has not been declared Private you should just be able to reference the properties to make changes .. B4X: Private Sub Class_Globals Public EditText1 As EditText End Sub in the Main Activity .. B4X: Sub Globals Dim myC As MyClass End Sub 'to change the text .. myC.EditText1.Text = "Blah Blah" Cheers mj Last edited: Feb 15, 2013 Upvote 0
Welcolm to the forum MarcDubeau .. if your Class EditText has not been declared Private you should just be able to reference the properties to make changes .. B4X: Private Sub Class_Globals Public EditText1 As EditText End Sub in the Main Activity .. B4X: Sub Globals Dim myC As MyClass End Sub 'to change the text .. myC.EditText1.Text = "Blah Blah" Cheers mj