I'm a bit puzzled here. When you DIM a view (like "DIM myLabel as Label") in the global sub, the view is shared and accessible everywhere in your program. There is ONE view with this ONE name.
However, things become complicated when you DIM a view inside a Sub and call that sub several times. So what happens when you do a "DIM myLabel as Label" in a Sub? Is that view added each time the sub is called? But how can we reference that view when the same name is used over and over again?
And what happens when you DIM a view inside a loop that repeats 100 times, does that mean that the view is added 100 times even if the same variable name is used inside the DIM statement? Should the DIMming be done BEFORE the loop, and the Initialize INSIDE the loop? Or is this of no importance?
However, things become complicated when you DIM a view inside a Sub and call that sub several times. So what happens when you do a "DIM myLabel as Label" in a Sub? Is that view added each time the sub is called? But how can we reference that view when the same name is used over and over again?
And what happens when you DIM a view inside a loop that repeats 100 times, does that mean that the view is added 100 times even if the same variable name is used inside the DIM statement? Should the DIMming be done BEFORE the loop, and the Initialize INSIDE the loop? Or is this of no importance?