B4J Question Problem initializing a TabPane

TorontoJim

Member
Licensed User
Longtime User
I get an error that the Object should first be initialized (TabPane)

This is in Process_Globals

B4X:
Private tabPaneMain As TabPane

...and this is in the AppStart

B4X:
tabPaneMain.Initialize()
TabPane1.LoadLayout("team_calculator", "Teams")
TabPane2.LoadLayout("shifts_tab", "Shifts")
TabPane3.LoadLayout("show_count", "Count")

The initialize() is asking for an event name, but I have no idea which event should go in there nor what format to make the entry. Also, the tip that comes up says not to initialize the tabPane if the node is added through the designer. I did add it via the designer, but I get the same error if I remove the tabPaneMain.initialize() from the AppStart().

Can someone please elucidate as to what goes in as the Event Name? Is it a subroutine name? A reference?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…