Hi
I try to save a local txt file
But I get this error
my code is
What do I wrong
I have add Dialog 4.01 to the libary
I try to save a local txt file
But I get this error
B4X:
B4J line: 135
ret = fd.Show(\
javac 1.8.0_121
src\b4j\example\main.java:139: error: package android.graphics does not exist
_ret = _fd.Show((java.lang.CharSequence)("Please Enter File Name"),"Save","Cancel","",ba,(android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.Null));
^
1 error
my code is
B4X:
Sub BtnStop_Click
Dim fd As FileDialog
Dim ret As Int
Dim sets As Map
fd.FastScroll = True
fd.FilePath = File.DirApp ' also sets ChosenName to an emtpy string
fd.ChosenName = "txt"
ret = fd.Show("Please Enter File Name", "Save", "Cancel", "",Null)
If ret = -1 Then
sets.Clear
sets.Put("TextArea1", TextArea1.Text)
File.WriteMap(fd.FilePath, fd.ChosenName & ".txt", sets)
End If
End Sub
What do I wrong
I have add Dialog 4.01 to the libary