I have a window with a few dozen tanks, with various labels and such. The tank and its level indicators, temperature labels, etc. are grouped into a container (cntTank_1, for example) and I think copied it many times, renaming it cntTank_2, etc.
When this window opens, I am passing it a parameter that identifies the cellar number. Based on that I would like to make visible only the number of tanks in that cellar. Is the internalFrameOpened action for the window the correct way to do this? I suppose it would be a switch statement making cntTank_1.visible=0 or 1?
Related to this, I have a dataset that is populated based on that same cellarnum parameter I pass in. It will have as many rows as there are tanks, and has a dozen columns or so. Is the best approach to populating labels and such to iterate through that dataset at the same time I make visible or invisible the tank containers. I guess I would go row by row, column by column to assign data to objects? Any advice would be appreciated. TIA D. Lewis