iOS Question texfield initialization

cirollo

Active Member
Licensed User
Longtime User
Hi! I know is silly question but....

I'm trying to put some textfield on my app,
when I tested the app (I've a button that changes the values in these textfields) I get some errors regarding textfield initialization, so I put this in the code

B4X:
Private EditText1 as TextField
.....
Private Sub Application_Start.....
       EditText1.Initialize("test")
.....

the error doesn't come up, but the textfield has not the value "test" and I don't know how to assign values to the textfield by code....

let me know...regards,

ciro
 

cirollo

Active Member
Licensed User
Longtime User
Hi Erel!
I'm using the designer but I need a button that, when pressed, will clear all the textfields, but I cannot do this!

I tried also with your suggest, in this way:


B4X:
Sub Button4_Click
    EditText1.Text=""
    EditText2.Text=""
    EditText3.Text=""
    EditText4.Text=""
End Sub

without success...(of course if I set the text property from the designer, it works, but I need to blank the fields at runtime)
 
Upvote 0

cirollo

Active Member
Licensed User
Longtime User
Hi Klaus, simply add a button and one of the instructions above and let me know if you can change the text of a textfield at runtime...
 
Upvote 0

cirollo

Active Member
Licensed User
Longtime User
sorry, now is working!

I deleted all the textfields and put new ones.....thank you
 
Upvote 0
Top