If I'm not mistaken, NumberFormat should also provide a Parse method, as DateTime.
[developer.android.com/reference
You can also use a NumberFormat to parse numbers:
myNumber = nf.parse(myString);]
I tried to use inline Java:
but I get:
java:434: error: cannot find symbol
NumberFormat nf = NumberFormat.getInstance(Locale.getLanguage);
^
Is this due to the fact that B4A already uses "a" NumberFormat?
How can I refer to the abstract class NumberFormat using Reflector?
Thank you
[developer.android.com/reference
You can also use a NumberFormat to parse numbers:
myNumber = nf.parse(myString);]
I tried to use inline Java:
B4X:
#If JAVA
public Double NumberFormat3(String value) {
NumberFormat nf = NumberFormat.getInstance(Locale.getLanguage);
return nf.parse(value);
}
#End If
but I get:
java:434: error: cannot find symbol
NumberFormat nf = NumberFormat.getInstance(Locale.getLanguage);
^
Is this due to the fact that B4A already uses "a" NumberFormat?
How can I refer to the abstract class NumberFormat using Reflector?
B4X:
Public Sub NumberFormat3(Value As Double) As String
Dim R As Reflector
R.Target =?
Thank you