tufanv Expert Licensed User Longtime User Jul 2, 2015 #1 Hello in b4a forum cableguy helped about a issue: "The only way to do it is to add them in the designer and then "duplicate" them in an array. Dim imgarray(15) Dim i as int = 0 for each v as imageview in activity Imgarray(i) = v i = i + 1 Next " it is his response. my question is in b4i there is no activity so what mut i replace the activity with ? I tried page1 but no luck. TY Last edited: Jul 2, 2015
Hello in b4a forum cableguy helped about a issue: "The only way to do it is to add them in the designer and then "duplicate" them in an array. Dim imgarray(15) Dim i as int = 0 for each v as imageview in activity Imgarray(i) = v i = i + 1 Next " it is his response. my question is in b4i there is no activity so what mut i replace the activity with ? I tried page1 but no luck. TY
Erel B4X founder Staff member Licensed User Longtime User Jul 5, 2015 #2 B4X: For Each iv As ImageView In Page1.RootPanel Next This code (and the code you posted) will only work if there are no other views in the activity. You should instead add all the image views to a panel and iterate over the panel views. Upvote 0
B4X: For Each iv As ImageView In Page1.RootPanel Next This code (and the code you posted) will only work if there are no other views in the activity. You should instead add all the image views to a panel and iterate over the panel views.