value.Validate

Description

Validates the variable`s value. Returns the default if value is empty or not in the range [from - to]. from, to parameters are optional.

Syntax

Function Validate(deflt, from, to)

Parameters

deflt (input) - the default value to return

from (input) - the lower bound of the range

to (input) - the uppder bound of the range

Return value

the variables value, or the default

See also

Platform Objects and Methods