Android Question Saving LIST from ExecuteMemoryTable

tcgoh

Active Member
Licensed User
Longtime User
Hi,

I am trying to save a File.writelist from DBUtils.ExecuteMemoryTable but the results are

[Ljava.lang.string;@43dld538
.........

What am doing wrong with these codes

B4X:
Dim list as List

list = DBUtils.ExecuteMemoryTable(SQL,"SELECT name FROM table1", Null,0)
        File.WriteList(File.DirRootExternal,"sqllist.txt",list)

Thanks for helping
 

tcgoh

Active Member
Licensed User
Longtime User
Yes the Dim Listname as list has been changed.

Opening the txt file give me the same results...
[Ljava.lang.string;@43dld538
.........
 
Upvote 0

tcgoh

Active Member
Licensed User
Longtime User
same results
[Ljava.lang.string;@43dld538
.........

The codes is not right! not the naming I think
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
#Region "ExecuteMemoryTable"
'Executes the query and returns the result as a list of arrays.
'Each item in the list is a strings array.


Sorry, I had forgotten that function.

It returns a list but each element of the list is a list that is a record.
 
Upvote 0
Top