SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎

target.Validate


Platform Objects


Description

Determines whether a value is within the set parameters.


Syntax


Function Validate(val, deflt, from, to)


Parameters


val - value to be validated (required)
default - a default value to be outputted when tested value not within parameters (required)
from - a numeric, date, or string value to be checked (required)
to - a numeric, date, or string value to be checked (required)


Return value


Variant value - the original value if it passes through validation, or the "default" if not within the set parameters


See also

Platform Objects and Methods
target.Update
Target Methods