The documentation for B4XFormatter is blank, https://www.b4x.com/android/help/b4xformatter.html, so I have nothing but an example from Erel to go by which I am not sure I understand it. Anyway I am wondering what the RemoveMinusSign does. It is not in his example.
Here is what I got but when I run it the number in the B4XPlusMinus range field is blank.
Thanks
Here is what I got but when I run it the number in the B4XPlusMinus range field is blank.
B4X:
pmInput2.Formatter.GetDefaultFormat.MaximumFractions = 0
pmInput2.Formatter.GetDefaultFormat.MinimumFractions = 0
pmInput2.Formatter.GetDefaultFormat.RemoveMinusSign = False
Dim strLow As String = pmInput2.Formatter.Format(-80)
Dim dLow As Double = strLow
Dim strHi As String = pmInput2.Formatter.Format(-86)
Dim dHi As Double = strHi
pmInput2.SetNumericRange(dLow, dHi, 1)
Private Sub pmInput2_ValueChanged (Value As Object)
strNewLon = pmInput2.Formatter.Format(Value)
End Sub
Thanks