ich have two similar layouts with plenty buttons. If I only load one at a time, can the buttons have same declarationes then? As "dim Button117 as button", or can it generate errors?
There are many cases where you load layouts with the same variable names. For example when you load the same layout file multiple times.
The global variables will point to the last view that was loaded.