MrKim Well-Known Member Licensed User Longtime User Sep 15, 2017 #1 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 B4X: Dim X as int Open MyRecordset For X = 1 to 10 MyRecordset.Movenext MyForm.Controls("Btn" & Cstr(X)).Caption = MyRecordset.SomeValue Next Is there any similar way to reference controls in B4J?
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 B4X: Dim X as int Open MyRecordset For X = 1 to 10 MyRecordset.Movenext MyForm.Controls("Btn" & Cstr(X)).Caption = MyRecordset.SomeValue Next Is there any similar way to reference controls in B4J?
Cableguy Expert Licensed User Longtime User Sep 15, 2017 #2 Search for "array of views" Also, you posted on the wrong sub forum Last edited: Sep 15, 2017 Upvote 0
MrKim Well-Known Member Licensed User Longtime User Sep 15, 2017 #3 Cableguy said: Search for "array of views" Also, you posted on the wrong sub forum Click to expand... Sure did, sorry - it's late and I'm tired. Upvote 0
Cableguy said: Search for "array of views" Also, you posted on the wrong sub forum Click to expand... Sure did, sorry - it's late and I'm tired.