B4J Question AS_TextfieldAdvanced question

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!
I'm trying to:
B4X:
For Each n As B4XView In pnlEntryData.GetAllViewsRecursive
        
    Try
        If n Is AS_TextFieldAdvanced Then
            Private t As B4XView = n
            t.Text = ""
        End If
            
    Catch
        Log(LastException)
        Continue
    End Try
Next
and nothing happens!
The AS_TextFieldAdvanced does not take the "" value.
I think there's something related to B4XViews and custom Views!
The code above does not produce any error.
 

angel_

Well-Known Member
Licensed User
Longtime User
Try this:

B4X:
For Each n As B4XView In pnlEntryData.GetAllViewsRecursive
        
    Try
        If n.Tag Is AS_TextFieldAdvanced Then
            Private t As AS_TextFieldAdvanced = n
            t.Text = ""
        End If
            
    Catch
        Log(LastException)
        Continue
    End Try
Next
 
Upvote 0
Top