'this is the main program. There is a button PersInfo in the layout Main2 and clicking it does start the sub PersInfo_click
Sub Process_Globals
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Public PersInfo As Button
End Sub
Private Sub Application_Start (Nav As NavigationController)
'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
Page1.RootPanel.LoadLayout("Main2")
NavControl.ShowPage(Page1)
End Sub
Private Sub Page1_Resize(Width As Int, Height As Int)
End Sub
Private Sub Application_Background
End Sub
Sub PersInfo_Click
PersInfo.Text = "Made it to sub" 'this works
PersonalInfoIP.Start()
End Sub