TolliumComponentBase::IsValidValue (open)
Validate a value for the component
Syntax
LOADLIB "mod::tollium/lib/componentbase.whlib";
BOOLEAN FUNCTION IsValidValue(VARIANT value)
Parameters
VARIANT value
Value to validate
Return value
BOOLEAN
TRUE if this value is a valid value for this component.
Description
This function should be overridden by components which supply a value property. It should check if the given value is a valid value for the component and should return FALSE if settings this value would cause an error, e.g. if the type does not match or if setting the value would cause no options to be selected for a single select component (radiobutton, pulldown, etc.). This function is used by ComposedRecord to check the record values before applying them. It should not check for required values.