Member variable DataRef():validate Foundation

Code block for data validation

Attribute: EXPORTED
Data type: Code block | NIL

The instance variable :validate contains an optional code block for data validation. self is passed to this code block. It must return a logical value indicating whether the data in the edit buffer is valid (.T.) or invalid (.F.).

Within the validation code block, the method :editBuffer() must be used to read the current value in the edit buffer of the Xbase Part. The method :getData() cannot be used at this point, since this method also performs an assignment via :dataLink. If :getData() is used and the validation fails, invalid data will be improperly assigned.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.