Android Question IsNumber function fault

yeroen

Member
Licensed User
Longtime User
I discovered the problem with IsNumber by accident and found the cause thanks to the Community. It causes hard-to-find errors. Can the <IsNumber> function be modified in a subsequent version?

see Erel's alernative function Dec 25, 2016

Sub TestNumber(s As String) As Boolean
Return IsNumber(s) And Regex.IsMatch("[\d\.]+", s)
End Sub
 

yeroen

Member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

Which problem are you referring to?
The IsNumber function returns TRUE by "1f" and "1d".
So IsNumber gives unexpected results if you are not aware of this.
So I mean: Can the IsNumber function be changed in a next update?
 
Upvote 0
Top