I laboriously got a routine to get the DecimalFormatSymbols:
(why I have not named it DecimalFormatoSymbol? ).
This routine, however, returns the symbol of the default Locale.
How to adapt it to get a given Locale? (public static DecimalFormatSymbols getInstance (Locale locale))
I bet that there is a "fast member" who will solve this
Thank you
[P.S. "(why I have not named it DecimalFormatoSymbol? )"
because I confused DecimalFormatoSymbol with DecimalSeparator
I need to get the DecimalSeparator, thank you]
B4X:
Public Sub getDecimalSeparator As Char
Dim rfl As Reflector
Dim nf As Object = rfl.RunStaticMethod("java.text.NumberFormat", "getInstance", Null, Null)
rfl.Target = nf
Dim sym As Object = rfl.RunMethod("getDecimalFormatSymbols")
rfl.Target = sym
Dim Separator As Char = rfl.RunMethod("getDecimalSeparator")
Return Separator
End Sub
(why I have not named it DecimalFormatoSymbol? ).
This routine, however, returns the symbol of the default Locale.
How to adapt it to get a given Locale? (public static DecimalFormatSymbols getInstance (Locale locale))
I bet that there is a "fast member" who will solve this
Thank you
[P.S. "(why I have not named it DecimalFormatoSymbol? )"
because I confused DecimalFormatoSymbol with DecimalSeparator
I need to get the DecimalSeparator, thank you]
Last edited: