Validate()

Validates data entries. For example, this method checks to see if a required field is filled in. This method is normally used in if statements.

Examples

if ((CRM.Mode==Save) && (!block.Validate()))
{error="<font color=red><b>Please correct the highlighted entries</b></font>";
CRM.Mode=Edit;}

Validates the relevant fields and displays an error message if validation has failed.