Android Question Change name of layout in designer [Solved]

Roger Daley

Well-Known Member
Licensed User
Longtime User
Hi All

I thought changing the name of a Layout would be easy, but....
The original name seemed OK until I decided to add the option of Landscape, not so smart so I want to change the name to Main.

Original name: Portrait.bal
New name: Main.bal

I shut down B4A , went to the "Files" dir and changed the name from "portrait.bal" to "main.bal".
When I reran the code the IDE threw up an error Not Able to Find "portrait.bal".
When I open the designer, under Files I can find "Portrait" but not "Main"


I've missed something .

Thanks in advance Roger.
 

DonManfred

Expert
Licensed User
Longtime User
Open Portrait in designer.

Choose SAVE AS to save it under a new name.
You now have Main.bal

Remove Portait.bal if not needed anymore.
 
Upvote 0

Roger Daley

Well-Known Member
Licensed User
Longtime User
Hi All

I thought changing the name of a Layout would be easy, but....
The original name seemed OK until I decided to add the option of Landscape, not so smart so I want to change the name to Main.

Original name: Portrait.bal
New name: Main.bal

I shut down B4A , went to the "Files" dir and changed the name from "portrait.bal" to "main.bal".
When I reran the code the IDE threw up an error Not Able to Find "portrait.bal".
When I open the designer, under Files I can find "Portrait" but not "Main"


I've missed something .

Thanks in advance Roger.
Don't panic, problem solved.
In the files TAB Add Main.bal, remove Portrait.bal


Regards Roger
 
Upvote 0
Top