In VBA I frequently do something like this when I have a large number of similar controls:
The below would Reference Buttons named Btn1, Btn2...Btn10
Is there any similar way to reference controls in B4J?
The below would Reference Buttons named Btn1, Btn2...Btn10
B4X:
Dim X as int
Open MyRecordset
For X = 1 to 10
MyRecordset.Movenext
MyForm.Controls("Btn" & Cstr(X)).Caption = MyRecordset.SomeValue
Next