var instance; // Type: wijmo.input.IFormatValidateLib; var returnValue; // Type: bool // Parameters var value; // Type: string var minValue; // Type: number var maxValue; // Type: number var culture; // Type: string returnValue = instance.validateNumber(value, minValue, maxValue, culture);
Parameters
- value
- The string value to validate as a number.
- minValue
- The lowest number to accept as a valid value.
- maxValue
- The highest number to accept as a valid value.
- culture
- The culture to use in validating the value. (Some cultures use a comma as a decimal marker.)
Return Value
Returns a bool indicating whether the number from the value string falls within the specified range.