Android Question How to get Edittext.text From Dirrerent Sub

Sai Main Seng Kham

Member
Licensed User
I have declare my edittext in other sub.
because i make the home page of app with (Sub Homeview .....End Sub)
I declare edittext in HomeView Sub.

I made a clickable Buttom and
how can i get the text from edittext (Edittext.text) when user click the Buttom.
 

Kwame Twum

Active Member
Licensed User
You can only access the EditText's text property in the sub within which you created it (Homeview in your case).
What's stopping you from declaring it in the Globals sub by the way?
 
Top