Android Question Clear EditText in B4XPages

Declan

Well-Known Member
Licensed User
Longtime User
How can I clear an EditText in a B4XPage from Main?
I have an EditText "txtUsername" in B4XPage "pgRegister"
I then need to clear the text from Main.
I have tried the following:
B4X:
B4XPages.pgRegister.txtUsername.text = ""
and
B4XPages.pgRegister.txtUsername.nativeobject.Text = ""
 

Declan

Well-Known Member
Licensed User
Longtime User
Sorted:
B4X:
B4XPages.GetManager.MainPage.pgx2.txtUsername.RequestFocus
 
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…