Android Question B4XFloatTextField I cannot see its content of the text, when I am in debuger mode

jose luis gudino

Active Member
Licensed User
Longtime User
Hello I have a problem when I use a view of type B4XFloatTextField I cannot see its content of the text, when I am in debuger mode.
and a message appears:
someone would have the solution
Thank you!!!

 

JordiCP

Expert
Licensed User
Longtime User
I guess the reason is that ".Text" is implemented with Getter/Setter methods in B4XFloatTextField. This means that, while syntactically it appears as a field in B4X, each time it is used the corresponding Getter/Setter method must be called. That's why the debugger doesn't allow to show it (it doesn't execute methods)

(B4XFloatTextField implementation)
B4X:
Public Sub getText As String
    Return mTextField.Text
End Sub

Public Sub setText(s As String)
    Dim old As String = mTextField.Text 'ignore
    mTextField.Text = s
    #if B4A
    If IsPaused(Me) Then tf_TextChanged(old, s)
    #Else if B4i
    tf_TextChanged (old, s)
    #end if
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…