List of layout objects

Cdymock

Member
Licensed User
Longtime User
Hi All,

Is there a good way to get a list of all of my EditText objects for instance, within a layout so that I can read their Tag Info?

Cheers

Chris
 

JonPM

Well-Known Member
Licensed User
Longtime User
B4X:
For i = 0 To Activity.NumberOfViews - 1
    Dim mytags as String
    If Activity.GetView(i) Is EditText Then
        mytags = Activity.GetView(i)
        Log(mytags.tag)
    End If
Next

I don't have B4A on this computer to test it, but it should be something like this.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…