List1 = StringUtils1.LoadCSV(File.DirAssets, "test.csv", "";"")
If FirstTime Then
SQL1.Initialize(File.DirAssets, "test1.db", True)
End If
SQL1.ExecNonQuery("DROP TABLE IF EXISTS table1")
SQL1.ExecNonQuery("CREATE TABLE table1 (col_1 TEXT ,col_2 TEXT ,col_3 TEXT ,col_4 TEXT ,col_5 TEXT ,col_6 TEXT ,col_7 TEXT ,col_8 TEXT ,col_9 TEXT ,col_10 TEXT ,col_11 TEXT ,col_12 TEXT ,col_13 TEXT ,col_14 TEXT)")
SQL1.BeginTransaction
For I = 0 To List1.Size-1
SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object(List1.Get(I))
Next I
SQL1.EndTransaction
Compiling code. Error
Error parsing program.
Error description: Invalid number of parentheses.
Occurred on line: 45
SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object(List1.Get(I))
List1 = StringUtils1.LoadCSV(File.DirAssets, "test.csv", "";"")
Log(List1.Get(0))
"Sales Organization";"Sales Organization";"Article group";"Article group";"Customer";"Customer";"Country";"Country";"Postal Code";"Fiscal year/period";"Material";"Material";"Net sales costing based";"Sales volume"
List1 = StringUtils1.LoadCSV(File.DirAssets, "test.csv", "";"") ' NO
List1 = StringUtils1.LoadCSV(File.DirAssets, "test.csv", ";") 'YES
SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object(List1.Get(I))
Compiling code. 0.03
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 45
SQL1.ExecNonQuery2(\
javac 1.6.0_26
src\B4A\Try\trywebview.java:276: not a statement
_i;
^
1 error
List1 = StringUtils1.LoadCSV(File.DirAssets, "test.csv", ";")
If FirstTime Then
SQL1.Initialize(File.DirInternal, "test1.db", True)
End If
SQL1.ExecNonQuery("DROP TABLE IF EXISTS table1")
SQL1.ExecNonQuery("CREATE TABLE table1 (col_1 TEXT ,col_2 TEXT ,col_3 TEXT ,col_4 TEXT ,col_5 TEXT ,col_6 TEXT ,col_7 TEXT ,col_8 TEXT ,col_9 TEXT ,col_10 TEXT ,col_11 TEXT ,col_12 TEXT ,col_13 TEXT ,col_14 TEXT)")
SQL1.BeginTransaction
For I = 0 To List1.Size-1
SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object(List1.Get(I)))
Next I
SQL1.EndTransaction
List1 = StringUtils1.LoadCSV(File.DirAssets, "test.csv", ";")
If FirstTime Then
SQL1.Initialize(File.DirRootExternal, "test1.db", True)
End If
Log(File.DirRootExternal)
Log(List1.Size)
SQL1.ExecNonQuery("DROP TABLE IF EXISTS table1")
SQL1.ExecNonQuery("CREATE TABLE table1 (col_1 TEXT ,col_2 TEXT ,col_3 TEXT ,col_4 TEXT ,col_5 TEXT ,col_6 TEXT ,col_7 TEXT ,col_8 TEXT ,col_9 TEXT ,col_10 TEXT ,col_11 TEXT ,col_12 TEXT ,col_13 TEXT ,col_14 TEXT)")
SQL1.BeginTransaction
For I = 0 To List1.Size-1
SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object(List1.Get(I)))
Next
SQL1.EndTransaction
WebView1.LoadHtml(DBUtils.ExecuteHtml(SQL1, "SELECT * FROM table1", Null, List1.Size-1, True))
List1 = StringUtils1.LoadCSV(File.DirAssets, "test.csv", ";")
If FirstTime Then
SQL1.Initialize(File.DirDefaultExternal, "test1.db", True)
End If
'Log(File.DirDefaultExternal)
'Log(List1.Size)
SQL1.ExecNonQuery("DROP TABLE IF EXISTS table1")
SQL1.ExecNonQuery("CREATE TABLE table1 (col_1 TEXT ,col_2 TEXT ,col_3 TEXT ,col_4 TEXT ,col_5 TEXT ,col_6 TEXT ,col_7 TEXT ,col_8 TEXT ,col_9 TEXT ,col_10 TEXT ,col_11 TEXT ,col_12 TEXT ,col_13 TEXT ,col_14 TEXT)")
SQL1.BeginTransaction
Try
For I = 0 To List1.Size-1
SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object(List1.Get(I)))
Next
SQL1.TransactionSuccessful
Catch
Log(LastException.Message) 'no changes will be made
End Try
SQL1.EndTransaction
WebView1.LoadHtml(DBUtils.ExecuteHtml(SQL1, "SELECT * FROM table1", Null, List1.Size-1, True))
List1.Initialize
List1 = StringUtils1.LoadCSV(File.DirAssets, "test.csv", "";"")
If FirstTime Then
SQL1.Initialize(File.DirDefaultExternal, "test1.db", True)
End If
SQL1.ExecNonQuery("DROP TABLE IF EXISTS table1")
SQL1.ExecNonQuery("CREATE TABLE table1 (col_1 TEXT ,col_2 TEXT ,col_3 TEXT ,col_4 TEXT ,col_5 TEXT ,col_6 TEXT ,col_7 TEXT ,col_8 TEXT ,col_9 TEXT ,col_10 TEXT ,col_11 TEXT ,col_12 TEXT ,col_13 TEXT ,col_14 TEXT)")
SQL1.BeginTransaction
Try
For I = 0 To List1.Size-1
Dim ColumnContent() As String
ColumnContent = List1.Get(I)
SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object(ColumnContent(0), ColumnContent(1), ColumnContent(2), ColumnContent(3), ColumnContent(4), ColumnContent(5), ColumnContent(6), ColumnContent(7), ColumnContent(8), ColumnContent(9), ColumnContent(10), ColumnContent(11), ColumnContent(12), ColumnContent(13)))
Next
SQL1.TransactionSuccessful
Catch
Log(LastException.Message) 'no changes will be made
End Try
SQL1.EndTransaction
WebView1.LoadHtml(DBUtils.ExecuteHtml(SQL1, "SELECT * FROM table1", Null, List1.Size-1, True))
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?