B4J Question File.DirData has red squiggly underline... why?

cklester

Active Member
Licensed User
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.
 

Jorge M A

Well-Known Member
Licensed User
1601942727774.png

B4X:
Log(File.DirData(""))
 
Upvote 0

cklester

Active Member
Licensed User
Dang. Always trust the contextual help! :D

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
Top