C clooney48 Active Member Licensed User Longtime User Oct 13, 2013 #1 Why does this simple code not work? B4X: Dim su As StringUtils Dim Row(2) As String Row(0) = "A" Row(1) = "AA" su.SaveCSV(File.DirRootExternal, "1.csv", ",", Row)
Why does this simple code not work? B4X: Dim su As StringUtils Dim Row(2) As String Row(0) = "A" Row(1) = "AA" su.SaveCSV(File.DirRootExternal, "1.csv", ",", Row)
NJDude Expert Licensed User Longtime User Oct 13, 2013 #2 Row should be a LIST not an array. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 14, 2013 #3 Row should be a List. Each item in the list should be an array (one element for each fields): B4X: Dim Rows As List Rows.Initialize Rows.Add (Array As String("A")) Rows.Add (Array As String("AA")) ... Upvote 0
Row should be a List. Each item in the list should be an array (one element for each fields): B4X: Dim Rows As List Rows.Initialize Rows.Add (Array As String("A")) Rows.Add (Array As String("AA")) ...
C clooney48 Active Member Licensed User Longtime User Oct 14, 2013 #4 Now it is clear, thanks! Upvote 0