### IsNumber not accept Literals

To check if a string is a number, the literals d and f are accepted (e.g. 0.5d, 0.5f) for floating numbers.
To not accept the literals d & f, add a second check with RegEx.IsMatch.
Example
' Handle literals L & D for float which are not accepted
`Sub IsNumber2(s As String) As Boolean
Return IsNumber(s) And Regex.IsMatch("[\d\.]+", s)
End Sub`
`Sub TextField1_TextChanged (Old As String, New As String)
' Empty field - reset styles
If New.Length = 0 Then
Label2.Text = $"Field is empty"$
CSSUtils.SetBorder(Sender, 2, fx.Colors.Transparent, 2)
CSSUtils.SetStyleProperty(Label2, "-fx-text-fill", "black")
Return
End If
' Digital comma is allowed - but needs to be replaced by dot.
If New.Contains(",") Then New = New.Replace(",", ".")
' Invalid input
If Not(IsNumber2(New)) Then
Label2.Text = $"Non numeric character entered."$
CSSUtils.SetBorder(Sender, 2, fx.Colors.Red, 2)
CSSUtils.SetStyleProperty(Label2, "-fx-text-fill", "red")
Else
' Valid input
Label2.Text = $"Valid numeric character entered."$
CSSUtils.SetBorder(Sender, 2, fx.Colors.Transparent, 2)
CSSUtils.SetStyleProperty(Label2, "-fx-text-fill", "black")
End If
End Sub`

Changed: , Category: Numbers, File: T6C226M1674.htm, ID: 1674