Method DataRef():validate() Foundation

Validates the data in the edit buffer.

Syntax
:validate() --> lValid
Return

This method returns the value .T. (true) when the data in the edit buffer is valid, otherwise it returns .F. (false).

Description

The method :validate() validates the data currently in the edit buffer of an Xbase Part. A validation code block needs to be available in the instance variable :validate. self is passed to this code block. Within this code block, :editBuffer() must be used to read the edit buffer. The method :getData() cannot be used at this point, since it evaluates the code block in :dataLink (If :getData() is used, an assignment takes place during the validation).

If no validation code block exists, :validate() returns the value of the instance variable :lastValid.

Feedback

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.