File.ReadString and WriteString.

mramos

Member
Licensed User
Longtime User
I am using:
B4X:
   File.WriteString(File.DirInternal,Filename, MarkActDetail)

to write to a file

When I read with:
B4X:
        LookupActDetail.Text = File.ReadString(File.DirInternal,Filename)

I get this in the editext box:
B4X:
android.widget.EditText@43c47f60

I know Filename is good I can Write and then Delete it with no errors. I have dim as this:
B4X:
   Dim LookupActDetail, MarkActDetail As EditText
 

mramos

Member
Licensed User
Longtime User
You have omitted the Text property so Basic4android is converting the control to its text representation.

File.WriteString(File.DirInternal,Filename, MarkActDetail.Text)

That did the trick.. Program is done. Thanks for the help. Still learning here.
 
Upvote 0
Top