I'm running a query against SQL to see if a record exists (so it can be updated). The query is quite simple and looks like "SELECT MAX (ShotNumber) FROM SESSION WHERE SessionNumber = 3 AND RallyNumber = 25"
When it does not exist (which is quite common) then I get a java.lang.NumberFormatException: Invalid double: "null"
Other B4A SQL routines will usually say something like "this is a sql exception not an error", but this error does not, so it concerns me.
I have it in a Try Catch loop but if there is a better way I'd like to know what it is.
Thanks for any responses.
When it does not exist (which is quite common) then I get a java.lang.NumberFormatException: Invalid double: "null"
Other B4A SQL routines will usually say something like "this is a sql exception not an error", but this error does not, so it concerns me.
I have it in a Try Catch loop but if there is a better way I'd like to know what it is.
Thanks for any responses.