Hans- Joachim Krahe Active Member Licensed User Longtime User Nov 23, 2020 #1 Hi, 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?
Hi, 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?
agraham Expert Licensed User Longtime User Nov 23, 2020 #2 Have you tried it? I can't think of a reason for it not to work. Upvote 0
Hans- Joachim Krahe Active Member Licensed User Longtime User Nov 23, 2020 #3 thank you, that would make my project much easier. I'm gonna try. Upvote 0
Hans- Joachim Krahe Active Member Licensed User Longtime User Nov 24, 2020 #4 ... yes, it works Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2020 #5 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. Upvote 0
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.