FormDataSource.validateWrite Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether data is valid and ready to be written.
public:
override bool validateWrite();
public override bool validateWrite ();
override this.validateWrite : unit -> bool
Public Overrides Function validateWrite () As Boolean
Returns
Returns true if data is valid; otherwise, false.
Remarks
This method is called from the FormDataSource.write method. If false is returned, the write operation is aborted and an error message is displayed. Override this method to add custom validation routines to your data source. The validateWrite method can be overridden on a form data source by right-clicking the Methods node under the data source, pointing to Override Method, and then clicking validateWrite. The call to the super() method in this method calls the validateWrite method on the table that is used as a data source. Therefore, the return value of the super() method should be examined. If you override the method, it should return true only if the super() method also returns true.