Change EditText value in another module

MarcDubeau

New Member
Licensed User
Longtime User
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
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:
Upvote 0
Top