Bug? Maybe... converting string to... 'Invalid double'

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Hi all.
b4a - V4.00
maybe I am being stupid or...

B4X:
If apkupdt.CurVN < apkupdt.WebVN Then
    snapIn_Home.ShowUpdateIfNeeded("U")
    dg.MessageBox("New version is available, Would you like to install now?","")
 Else
     snapIn_Home.ShowUpdateIfNeeded("")
 End If

The fist line is blowing up with 'Invalid double' They are strings but I though b4a would convert. I am using udg appupdate lib. I took a look in his lib code (Big THANKS to udg for including source code) and he has almost the same line that works.

B4X:
If curver < webver Then

Stupid... or bug.... or lunch time???
 

sorex

Expert
Licensed User
Longtime User
maybe all 3 of them? ;)

check your variable declarations I'd say.
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
log("CurVN="&apkupdt.CurVN)
log("WebVN"&apkupdt.WebVN)
 
Top