Enables you to find out whether a variable or a control is:
- a numeric (integer, real, currency or numeric).
- a string that can be converted into numeric.
IsNumeric("143") // returns True
IsNumeric("1.67") // returns True
IsNumeric("ABC") // returns False
IsNumeric("3plus2") // returns True
IsNumeric("7,5") // returns True
IsNumeric("1D2") // returns True
IsNumeric("2.5e-2") // returns True
IsNumeric("69 Lyon Rhône") // returns True
IsNumeric("09/01/2007") // returns True
Syntax
<Result> = IsNumeric(<Variable or control>)
<Result>: Boolean
- True if the specified variable or control is:
- a numeric
- a string that can be converted into numeric (by Val for example),
- False otherwise.
<Variable or control>: Any type
Element to use.
Remarks
- A buffer is not considered as being a numeric.
- A duration is not considered as being a numeric.
Business / UI classification: Neutral code