DataFunctions.ValidateNumber Method

The ValidateNumber method checks whether a string contains a valid number, and optionally checks the value of the number against a specified numerical range. If the value is a valid number and falls within the given range, ValidateNumber returns True; otherwise, False.

Syntax

DataFunctions.ValidateNumber(Value, MinimumValue, MaximumValue)

Parameters

Value
The number to validate.
MinimumValue
Optional. This value designates the low end of the range. The default value for this parameter is Null, which means that MinimumValue is ignored in the range validation.
MaximumValue
Optional. This value designates the high end of the range. The default value for this parameter is Null, which means that MaximumValue is ignored in the range validation.

© 1997-1998 Microsoft Corporation. All rights reserved.