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)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.