Sfairadora

  • Reference Guide

validate_window

validate_window()
The function calls all the validation functions associated with all the dispels contained in the window, from which the validate_window function has been called. If a validation functions reports data edited in the window as inconsistent, an error message is displayed, the dispel editing the inconsistent data is activated, and the validate_window function returns FALSE. If the edited data is correct, the validate_window function returns TRUE. If a validation function returns a warning, it is displayed to the user with a question, whether to correct the potential mistake. If the user chooses to correct the mistake, the validate_window function returns FALSE, otherwise TRUE.
If the function is not called from within a window, an error is returned.

See Also