Hello, I'm Delphi programmer, and I'm migrating to B4A.
When I want to change the properties of a group of components, I can usually do the following in Delhpi.
Example:
for i: = 0 to ComponentCount -1 of
begin
if Components is TEdit then
TEdit (Components ) color: = clWhite;
end;
For i = 0 To Activity.NumberOfViews - 1
If Activity.GetView(i) Is Button Then
Dim b As Button
b = Activity.GetView(i)
b.Color = Colors.Blue
End If
Next
You can use also
B4X:
For Each v As View In Activity.GetAllViewsRecursive
...
Next
For i = 0 To Activity.NumberOfViews - 1
If Activity.GetView(i) Is Button Then
Dim b As Button
b = Activity.GetView(i)
b.Color = Colors.Blue
End If
Next
You can use also
B4X:
For Each v As View In Activity.GetAllViewsRecursive
...
Next