MrKim Well-Known Member Licensed User Longtime User Nov 20, 2024 #1 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.
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 Nov 23, 2024 #2 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
If you insist that the filename can contain a space, you could try to replace the space character with a hard space character.
MrKim Well-Known Member Licensed User Longtime User Nov 24, 2024 #3 MicroDrie said: If you insist that the filename can contain a space, you could try to replace the space character with a hard space character. Click to expand... No it was an accident. Changed he name in windows and cut and pasted it to my app. That's why it took me a bit to figure out the problem. Upvote 0
MicroDrie said: If you insist that the filename can contain a space, you could try to replace the space character with a hard space character. Click to expand... No it was an accident. Changed he name in windows and cut and pasted it to my app. That's why it took me a bit to figure out the problem.