L LucianoB Member Licensed User Longtime User Sep 8, 2015 #1 I'd like to save to a txt file the items currently existing in a tableview. I have this code but the rows written in the txt file are like this one: [Ljava.lang.String;@514c7262 Code: Copy File.OpenOutput(LogFolder,LogFilename,True) Dim LogList As List LogList.Initialize For c = 0 To TableView1.Items.Size - 1 LogList.Add(TableView1.Items.Get(c)) Log(LogList.Get(c)) Next File.WriteList(LogFolder,LogFilename,LogList) What am I doing wrong? Thank you
I'd like to save to a txt file the items currently existing in a tableview. I have this code but the rows written in the txt file are like this one: [Ljava.lang.String;@514c7262 Code: Copy File.OpenOutput(LogFolder,LogFilename,True) Dim LogList As List LogList.Initialize For c = 0 To TableView1.Items.Size - 1 LogList.Add(TableView1.Items.Get(c)) Log(LogList.Get(c)) Next File.WriteList(LogFolder,LogFilename,LogList) What am I doing wrong? Thank you
L LucianoB Member Licensed User Longtime User Sep 8, 2015 #2 Well, sorry. I changed my code with: Code: Copy File.OpenOutput(LogFolder,LogFilename,True) Dim LogList As List LogList.Initialize For c = 0 To TableView1.Items.Size - 1 Dim r() As String = TableView1.Items.Get(c) LogList.Add(r(0)) Log (r(0)) Next File.WriteList(LogFolder,LogFilename,LogList) and now it works. Last edited: Sep 8, 2015 Upvote 0
Well, sorry. I changed my code with: Code: Copy File.OpenOutput(LogFolder,LogFilename,True) Dim LogList As List LogList.Initialize For c = 0 To TableView1.Items.Size - 1 Dim r() As String = TableView1.Items.Get(c) LogList.Add(r(0)) Log (r(0)) Next File.WriteList(LogFolder,LogFilename,LogList) and now it works.