iOS Question Layout file not found in Main

DickD

Active Member
Licensed User
Below is the start of my Main module. It has been the same for several weeks with no major changes except to add a new button this morning. When I went to compile I get the error "No such file or directory" when adding the layout "main2". The file definitely exists in the proper directory. Some corruption must have occurred. How do I get this fixed without having to delete and re-create the file again? It's rather large.

B4X:
Dim Profile as Button ' added this morning

Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
Page1.RootPanel.LoadLayout("main2") 'error occurs on this line
NavControl.ShowPage(Page1)
End Sub
...
'added this morning
Sub Profile_click
ProfileManager.Start()
End Sub
 

DickD

Active Member
Licensed User
Below is the start of my Main module. It has been the same for several weeks with no major changes except to add a new button this morning. When I went to compile I get the error "No such file or directory" when adding the layout "main2". The file definitely exists in the proper directory. Some corruption must have occurred. How do I get this fixed without having to delete and re-create the file again? It's rather large.

Once again I have solved my own problem. I simply SAVED AS... the old layout under a new name and changed the name in the Main module. Why don't I think of these things before I post them.
 
Upvote 0
Top