cklester Well-Known Member Licensed User Oct 5, 2020 #1 The IDE is putting a red squiggly underline under this line: B4X: Log(File.DirData) When looking at the TextFiles.b4j example, it uses the File object just fine. I can't figure out why the TextFiles example works, but my code does not. Isn't File a built-in, so I can just up and use it? I did a search for DirData and haven't found the answer. I have the following checked in the Libraries Manager: B4XPages, jCore, jFX, and jNet.
The IDE is putting a red squiggly underline under this line: B4X: Log(File.DirData) When looking at the TextFiles.b4j example, it uses the File object just fine. I can't figure out why the TextFiles example works, but my code does not. Isn't File a built-in, so I can just up and use it? I did a search for DirData and haven't found the answer. I have the following checked in the Libraries Manager: B4XPages, jCore, jFX, and jNet.
LucaMs Expert Licensed User Longtime User Oct 6, 2020 #3 Have a look at the contextual help and the error message in the Logs Tab. A parameter (AppName As String) is missing. Upvote 0
Have a look at the contextual help and the error message in the Logs Tab. A parameter (AppName As String) is missing.
cklester Well-Known Member Licensed User Oct 6, 2020 #4 Dang. Always trust the contextual help! I thought I saw an example somewhere where @Erel used exactly what I was trying: Log(File.DirData), so I thought that was gospel. I think I saw this, though, and got confused. Thank you, @LucaMs and @Jorge M A ! Upvote 0
Dang. Always trust the contextual help! I thought I saw an example somewhere where @Erel used exactly what I was trying: Log(File.DirData), so I thought that was gospel. I think I saw this, though, and got confused. Thank you, @LucaMs and @Jorge M A !
Erel B4X founder Staff member Licensed User Longtime User Oct 6, 2020 #5 Tip: easier to use XUI.DefaultFolder + XUI.SetDataFolder. Upvote 0