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.
Seeking for a way to set customview properties for a number of the same customviews in a loop via code. Example: Defined the 3 customviews Private ThermostatMakeLab As xInstrumentationController Private ThermostatWohnzimmer1 As xInstrumentationController Private ThermostatWohnzimmer2 As...
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