mare1980k1 Member Licensed User Longtime User Oct 5, 2017 #1 I am looking for a way to go through views with some loop. I have bunch of checkbox views like (CheckBox1, CheckBox2,CheckBox3..) How can you do something like: Code: Copy for i=1 to i=100 'CheckBox(i).visible=false Next
I am looking for a way to go through views with some loop. I have bunch of checkbox views like (CheckBox1, CheckBox2,CheckBox3..) How can you do something like: Code: Copy for i=1 to i=100 'CheckBox(i).visible=false Next
NJDude Expert Licensed User Longtime User Oct 5, 2017 #2 Search the forums for examples regarding "GetAllViewsRecursive" Upvote 0
LucaMs Expert Licensed User Longtime User Oct 5, 2017 #3 For Each V As View In Activity.GetAllViewsRecursive ' here check the type of the view or its tag to distinguish the views V.Visible = False Next It is better to put the views in a panel and then use Panel1.GetAllViewsRecursive Upvote 0
For Each V As View In Activity.GetAllViewsRecursive ' here check the type of the view or its tag to distinguish the views V.Visible = False Next It is better to put the views in a panel and then use Panel1.GetAllViewsRecursive
mare1980k1 Member Licensed User Longtime User Oct 5, 2017 #4 NJDude said: Search the forums for examples regarding "GetAllViewsRecursive" Click to expand... Thanks, found it Upvote 0
NJDude said: Search the forums for examples regarding "GetAllViewsRecursive" Click to expand... Thanks, found it
mare1980k1 Member Licensed User Longtime User Oct 5, 2017 #5 LucaMs said: For Each V As View In Activity.GetAllViewsRecursive ' here check the type of the view or its tag to distinguish the views V.Visible = False Next It is better to put the views in a panel and then use Panel1.GetAllViewsRecursive Click to expand... I already have them in a panel, but I have also buttons and others stuff there, it is panel on a scrollview. But your suggestions resolves that, thank you. Upvote 0
LucaMs said: For Each V As View In Activity.GetAllViewsRecursive ' here check the type of the view or its tag to distinguish the views V.Visible = False Next It is better to put the views in a panel and then use Panel1.GetAllViewsRecursive Click to expand... I already have them in a panel, but I have also buttons and others stuff there, it is panel on a scrollview. But your suggestions resolves that, thank you.