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...

Code: Copy
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.

Code: Copy
If curver < webver Then

Stupid... or bug.... or lunch time???
 
maybe all 3 of them? ;)

check your variable declarations I'd say.
 
Code: Copy
log("CurVN="&apkupdt.CurVN)
log("WebVN"&apkupdt.WebVN)
 
Back
Top