B4J Question Fair Warning! files with spaces don't work in executables.

MrKim

Well-Known Member
Licensed User
Longtime User
The following file worked fine until I created an executable (note the space).
WCLightTheme .css
It was in the files DIR. I was able to add it to the files tab.
The following line worked:
B4X:
        MachinesFrm.Stylesheets.Add(File.GetUri(File.DirAssets, "WCLightTheme .css"))
It didn't fail until I tried to run the executable.
 

MicroDrie

Well-Known Member
Licensed User
Longtime User
If you insist that the filename can contain a space, you could try to replace the space character with a hard space character.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…