Shay Well-Known Member Licensed User Longtime User Jun 14, 2014 #1 Hi how can I do this? B4X: For i=0 To Stars Panel1.AddView(ImageView2,move+80dip,65dip,16dip,16dip) ImageView2.Bitmap=Bitmap2 move=move+20 Next The above will give error, since ImageView2 is already exist
Hi how can I do this? B4X: For i=0 To Stars Panel1.AddView(ImageView2,move+80dip,65dip,16dip,16dip) ImageView2.Bitmap=Bitmap2 move=move+20 Next The above will give error, since ImageView2 is already exist
LucaMs Expert Licensed User Longtime User Jun 14, 2014 #2 You must declare the ImageView inside the cicle. B4X: For i = 0 to Stars private imvStar as ImageView imvStar.Initialize... panel1.add(imvStar, ...) next Upvote 0
You must declare the ImageView inside the cicle. B4X: For i = 0 to Stars private imvStar as ImageView imvStar.Initialize... panel1.add(imvStar, ...) next
Shay Well-Known Member Licensed User Longtime User Jun 14, 2014 #3 Thanks, it is working great Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2014 #4 Note that it should be: B4X: move = move + 20dip Upvote 0