I have a custom control project called "CustomControl" with a custom control module called "CustomControl1" in the files tab in my "B4X-Launcher" project. I'm trying to use File.Copy to copy those files to the name the user gives them. However, when I use fx.ShowExternalDocument to launch the project, B4J is unable to recognize the now renamed module.
@Erel - Solved it! I added the following code to my project:
B4X:
Dim POriginal As String = File.ReadString(Path, Name & ".b4j")
Dim NewFile As String = POriginal.Replace("Module1=CustomControl1", "Module1=" & Name)
File.WriteString(Path, Name & ".b4j", NewFile)