hello to all.
i'm using flexible table to show a sql table.
when i click in a row and column i use the value that's in that column for some work.
when that column has a value all's good.
however when that column does not have a value i've got an error message:
Error occurred on line: 841 (Main)
java.lang.NumberFormatException: Invalid double: ""
at java.lang.StringToReal.invalidReal(StringToReal.java:63)
at java.lang.StringToReal.parseDouble(StringToReal.java:248)
at java.lang.Double.parseDouble(Double.java:295)
at anywheresoftware.b4a.debug.RDebugUtils.numberCast(RDebugUtils.java:50)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:708)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:337)
....
i had tried to see if the value lenght was = 0 and if so it would return a " " or else a null ...but without sucess
(aparently) the responsable for that error is the
in the tablecustomview v 2.1
how to fix it?
thkx!
i'm using flexible table to show a sql table.
when i click in a row and column i use the value that's in that column for some work.
when that column has a value all's good.
however when that column does not have a value i've got an error message:
Error occurred on line: 841 (Main)
java.lang.NumberFormatException: Invalid double: ""
at java.lang.StringToReal.invalidReal(StringToReal.java:63)
at java.lang.StringToReal.parseDouble(StringToReal.java:248)
at java.lang.Double.parseDouble(Double.java:295)
at anywheresoftware.b4a.debug.RDebugUtils.numberCast(RDebugUtils.java:50)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:708)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:337)
....
i had tried to see if the value lenght was = 0 and if so it would return a " " or else a null ...but without sucess
(aparently) the responsable for that error is the
B4X:
Public Sub GetValue(Col As Int, Row As Int) As String
Dim values() As String
values = Data.get(Row)
Return values(Col)
End Sub
in the tablecustomview v 2.1
how to fix it?
thkx!