B4J Question Loop No inLabels no Form

Geraldo Silva

Member
Licensed User
Hello .
I need a help how can I loop in all form's Labels (B4j)?

????
For i = 0 to MyForm.GetView ????

log(label.text)

Next
 

DonManfred

Expert
Licensed User
B4X:
    For Each n As Node In MainForm.RootPane.GetAllViewsRecursive
        Log(n)
        If n Is Label Then
            Dim lbl As Label = n
            Log("Label Text = "&lbl.Text)
        End If
    Next
 
Upvote 0
Top