Reference Grid by Appending number to Grid Name
Posted on 2009-04-20
I have a form with 6 tabs. Each tab has 11 grids on it. On Each tab the grids are named the same... but with the associated tab number at the end.
There are a lot more grids than these, but should give you the idea.
Now I have 1 Save/Update procedure and I need to reference the grids specifically according to the tab selected.
For example, if tab index 2 is selected, then I need to specify that the grids have the name with the 2 appended to it. Like me.fpGrdTires & iTabIndex .... but you can't do that:-(
In VB 6 I used to index the controls, that was real easy.
How would I do this in VB 2008?
Please provide an example. Clicking on links crashes my IE