In the latest version of B4A, when I create a new project, a button that shows a message box appears by default. This button appears in the Layout but is not declared in the variables section (globals or process globals). Do B4X Views not need to be declared?
Views added in the visual designer do not need to be declared for their events to work and do not need to be initialised. They only need to be declared, using the generate members menu, if you are going to access other methods.
If you are adding views by code, then you need to initialize them!
I think he's referring to the default project you get when you select "New/B4XPages" from IDE.
It comes with a layout with a single button that triggers a MsgBox.
Button is not declared because only the event _Click is used.
I think he's referring to the default project you get when you select "New/B4XPages" from IDE.
It comes with a layout with a single button that triggers a MsgBox.
Button is not declared because only the event _Click is used.