asales Expert Licensed User Longtime User Oct 29, 2025 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Oct 29, 2025 #2 What is the purpose of calling As(Double) here? It should work without it.