hi,
i have a sub that is called to add a panel of child views when a button is clicked so there can be any number of these panels in the activity at any time. I want to give each panel a unique name as its created so i can reference it when in the code. The sub creates the panel with a name, 'pnlrow' however each time it is called it obviously gives each new panel the same name how can i change this at the time of dimming it??
i.e. dim pnlrow & "_" & i As Panel
so each panel name is appended with an underscore and incrementing integer?
or, since i am giving each panel a unique tag attribute how can i reference the panel by its tag? Like the DOM's getElementById(id) ... getViewNameByTag(tag)
i have a sub that is called to add a panel of child views when a button is clicked so there can be any number of these panels in the activity at any time. I want to give each panel a unique name as its created so i can reference it when in the code. The sub creates the panel with a name, 'pnlrow' however each time it is called it obviously gives each new panel the same name how can i change this at the time of dimming it??
i.e. dim pnlrow & "_" & i As Panel
so each panel name is appended with an underscore and incrementing integer?
or, since i am giving each panel a unique tag attribute how can i reference the panel by its tag? Like the DOM's getElementById(id) ... getViewNameByTag(tag)