i have a collection of text boxes. How do i use a for each to adjust the property(s) of them all. in fact for any control sorry i mean view. is there already a thread on this? i could not find any when searching
No. if i do that i would not really need to use For Each. The structure of a traditional For Each is that each control/view can be addressed based on its type not its name.
For i = 0 To Activity.NumberOfViews-1
If Activity.GetView(i) Is EditText Then
Dim ET As EditText = Activity.GetView(i)
Log(i&" "&ET.Text)
'And anything else
End If
Next
If the EditTexts are on a Panel, change Activity for PanelName.
All a for each loop does is iterate through a list/array of objects, returning an object of your type cast for each object. With that being said, you need a list/array to iterate through.
For me, if you're not wanting to use an array or list, then you could put the edits on a panel and loop through them that way.