edittext bug

kordou

Member
Licensed User
Longtime User
HI!
I am having a weird problem..
I have create a simple panel on the designer with one text box and one button(this is a very simple case)
and i am want just to have an msgbox that displays the value of the text box when the button is pressed.. ( I know seems to simple)

the problem is that the text box.text is always empty (debugging)

this is not normal. i have made other applications and had not such an issue..
i have programed a code 3 times from scratch and i found that the error is this bug!!!

anyone help here ?
 

kordou

Member
Licensed User
Longtime User
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.

Dim btnEnter As Button

Dim pannel As Panel

Dim txtinputbox As EditText
End Sub


Sub Activity_Create(FirstTime As Boolean)

Activity.LoadLayout("mypannel")

pannel.Initialize("") ' Initializes pnlPage1
pannel.LoadLayout("mypannel ") ' Loads "Page1" layout file
Activity.AddView(pannel,0,0,100%x,100%y) ' Adds pnlPage1 to Activity
pannel.Visible=true

End Sub

Sub btnEnter_Click
Msgbox(txtinputbox.text,”test printing”)
End Sub


I have create another applycations much more complicated but in this simple test case senario......
 

klaus

Expert
Licensed User
Longtime User
Did you enter any text to the txtinputbox EditText view in the Designer.

Why do you add a supplementary panel onto the Activity ?
How is your layout ?

Can you post the project as a zip file (IDE menu Files / Export As Zip)

When you post code you should use [ code ] [ /code ] tags without the spaces or use the # button.

Best regards.
 
Top