BPak Active Member Licensed User Longtime User Apr 30, 2012 #1 Code: Copy SQL1.ExecNonQuery2("INSERT INTO Races VALUES(?, ?, ?, 0, 0.00, 0, 0.00)", Array As Object(Null, Track, Outlay)) When the prog is running in the Emulator and the EditText is filled in I click the Button and it throws an Exception. Do not see what is causing it. Any help on this is appreciated. Attachments dutche.zip dutche.zip 7.1 KB · Views: 337
Code: Copy SQL1.ExecNonQuery2("INSERT INTO Races VALUES(?, ?, ?, 0, 0.00, 0, 0.00)", Array As Object(Null, Track, Outlay)) When the prog is running in the Emulator and the EditText is filled in I click the Button and it throws an Exception. Do not see what is causing it. Any help on this is appreciated.
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2012 #2 I ran your program in Debug mode and it fails on this line: Code: Copy If Outlay = "" Then An Int cannot be compared with an empty string. I recommend you to set the InputType of the second EditText to INPUT_TYPE_NUMBERS. Upvote 0
I ran your program in Debug mode and it fails on this line: Code: Copy If Outlay = "" Then An Int cannot be compared with an empty string. I recommend you to set the InputType of the second EditText to INPUT_TYPE_NUMBERS.