Bug? [Solved] Error using vlr.As(Double) in Debug mode

asales

Expert
Licensed User
Longtime User
This code works in the Release mode:
B4X:
Dim vlr As Double = 0
If IsNumber(edtValor.Text) Then vlr = edtValor.Text
LogColor(vlr.As(Double), Colors.Cyan)
But in Debug mode I get the error:
B4X:
LogColor(vlr.As(Double), Colors.Cyan)
shell\src\br\com\profiles\pageedit_subs_0.java:3689: error: incompatible types: RemoteObject cannot be converted to double
parent.__c.runVoidMethod ("LogImpl","812714016",BA.NumberToString(((double)_vlr)),parent.__c.getField(false,"Colors").getField(true,"Cyan"));
Which could be the problem?
 
Top