list not saving properly

tucci999

Member
Licensed User
Longtime User
ok so i wrote an app that has multiple text boxes and then saves them as a list, and then emails it as said list, but when i get the file each item looks like
android.widget.EditText@40e0fa68, with a different hash tag at the end.

Sub btnSave_Click
Dim List1 As List

List1.Initialize
List1.Add(txtfn)
List1.Add(txtln)
List1.Add(txtpn)
List1.Add(txten)

File.WriteList(File.DirRootExternal & "/APPNAME", "data.txt", List1)

End Sub

then i just use SMTP to email data.txt

anyreason that you all can see as to why that is.
 

stevel05

Expert
Licensed User
Longtime User
I assume that txtfn,txtln etc. are the names of your edittexts, you will need to reference the text within them as txtfn.text etc.

Try:

Sub btnSave_Click
Dim List1 As List

List1.Initialize
List1.Add(txtfn.text)
List1.Add(txtln.text)
List1.Add(txtpn.text)
List1.Add(txten.text)

File.WriteList(File.DirRootExternal & "/APPNAME", "data.txt", List1)

End Sub

android.widget.EditText@40e0fa68 is the internal reference to the edit text object.
 
Last edited:
Upvote 0
Top