You are here: Symbol Reference > JSEditDialogIntf Namespace > Interfaces > IJSEditDialogControl Interface > IJSEditDialogControl Methods > IJSEditDialogControl.ValidateInput Method
LMD DialogPack
ContentsIndexHome
PreviousUpNext
IJSEditDialogControl.ValidateInput Method

Called so the control can prevent a dialog from closing.

Pascal
function ValidateInput(out Message: TJSString; const ModalResult: TModalResult): Boolean;

Implement the CanClose method to provide validation on the control. If the method returns false then an appropriate error message should be returned in the Message parameter. The ModalResult parameter indicates what the result value of the dialog will be so you can perform any required validation that might prevent the dialog from being closed. If the user has cancelled the dialog, then there is no point in validating the dialogs contents.

Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!