String to double

Galbas

Member
Licensed User
Longtime User
Hi guys!
How can I convert a string to a double?
I have a variable with the value "50.2" and I want to convert to double and after I need to compare with a variable Max

Dim NE.DMP as String: NE.DMP = "50.2"
dim Max as Double:Max = 51.7

if (Max >= NE.DMP) then
MsgBox("Overflow","Main")
end if

When I do this the screen shows me java.lang.NumberFormatException:False

What is wrong?
Thanks,
Galbas
 
Top