I create the Defaultfolder at Roaming,then I have directory path c:\users\salea\Appdata\Roaming\DefaultFolder
And then I code in B4XMainPage at initialize
B4X:
#If B4J
xui.setdatafolder("c:\users\salea\Appdata\Roaming\DefaultFolder ")
#End If
It's not correct. Could you make the complete the project for me studying? I think I can learn it.
No! Then you won't learn it either. I even gave you a code snippet, you just had to change "YourAppName" with a name of your choice.
#If B4J is not needed, because the code does nothing in B4A and B4I as described.
No! Then you won't learn it either. I even gave you a code snippet, you just had to change "YourAppName" with a name of your choice.
#If B4J is not needed, because the code does nothing in B4A and B4I as described.
Because this is a global folder in the app data? I don't want another class or program that was also developed with B4J to write to the same app data folder. That's why you specify a name.
Because this is a global folder in the app data? I don't want another class or program that was also developed with B4J to write to the same app data folder. That's why you specify a name.
You should watch some tutorials of erel and other members on YouTube because you ask really basic questions and without minimal understanding it will be very difficult for you
You should watch some tutorials of erel and other members on YouTube because you ask really basic questions and without minimal understanding it will be very difficult for you
B4XStringFunctionVB and B4XThaiUtils are important for Thai delvelopers. I would like to make accomplish. Thai people is rather the last group who understand English.
No idea what you want with "Dim" now. But here is the code you need.
B4X:
Public Sub Initialize
DataFileName = "Data_Temporary_File.map"
xui.SetDataFolder("YourAppName")
'DataPathName = File.DirInternal
DataPathName = xui.DefaultFolder
End Sub
I will do tomorrow, because I must prepare the food for the children.And he or he use my phone for the game. Thank you for today.Thank you for the kind of you.
Hi Alexander,
After I coded at post #56 in Initailize,Why it still have error "setdatafolder must be called before using this method" I'm not sure that I set "YourAppName" correct ,or not? (Attached picture) I don't know where is my mistake. Please help me again.
After I coded at post #56 in Initailize,Why it still have error "setdatafolder must be called before using this method" I'm not sure that I set "YourAppName" correct ,or not? (Attached picture) I don't know where is my mistake. Please help me again.