Hi
I am try to check if the app have new version
this is my code I am getting error java.lang.NumberFormatException: multiple points
Regards
Sigster
I am try to check if the app have new version
this is my code I am getting error java.lang.NumberFormatException: multiple points
Regards
Sigster
B4X:
Dim app_version As String = "1.0.1"
Dim upgrade As String
If app_version < upgrade.check_upgrade Then
Txt_yesorno.Text = "Yes"
Else
Txt_yesorno.Text = "No"
End If
Sub check_upgrade
ConnectDatabase
Dim RS As ResultSet = SQLCon.ExecQuery("SELECT * FROM version " WHERE ID = '1';")
Do While RS.NextRow
upgrade = RS.GetString("version")
Loop
RS.Close
End Sub
B4X:
main._appstart (java line: 150)
java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1110)
at java.lang.Double.parseDouble(Double.java:540)
at b4j.example.main._appstart(main.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.start(main.java:36)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:219)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:182)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:179)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:17)
at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:67)
at java.lang.Thread.run(Thread.java:745)