E
eje
IsNumeric(value) should return false if value "can not be
successfully converted to a Double." Instead I get the
following error message: "Input string was not in a
correct format."
I use the following function in a validating class to use
when needed. (Value = H880118A gave the error (like
other 'unconvertible' strings))
Public Function Numeric(ByVal value) As Boolean
If CType(value, String).Length = 0 Then
m_msg = "Value is empty"
Return False
End If
If IsNumeric(value) Then
Return True
Else
m_msg = "Value isn't numeric"
Return False
End If
End Function
What to do?
Eje
successfully converted to a Double." Instead I get the
following error message: "Input string was not in a
correct format."
I use the following function in a validating class to use
when needed. (Value = H880118A gave the error (like
other 'unconvertible' strings))
Public Function Numeric(ByVal value) As Boolean
If CType(value, String).Length = 0 Then
m_msg = "Value is empty"
Return False
End If
If IsNumeric(value) Then
Return True
Else
m_msg = "Value isn't numeric"
Return False
End If
End Function
What to do?
Eje