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: Copy
B4XPages.pgRegister.txtUsername.text = ""
and
B4XPages.pgRegister.txtUsername.nativeobject.Text = ""
 
B4XPages.pgRegister.txtUsername.text = ""
B4X: Copy
B4XPages.GetManager.MainPage.p_Page2.txtUsername.Text = ""
Set the Page you want in the B4XMainPage to public:
B4X: Copy
Public p_Page2 As b4xp_Page2
now you can access it.
 
Upvote 1
Back
Top