Validate method: FieldDefn class
Syntax
Validate()
Description
Use this method to validate a field definition.
Parameters
None.
Returns
A Boolean value. True if the field definition is successfully validated; false otherwise. If it returns false, the detailed error messages are available through the Messages property.
Example
Local FieldDefn &newField = CreateFieldDefn();
If All(&newField) Then
&newField.Name = "MYNEWFIELD";
&newField.Type = %FieldType_Char;
&newField.Description = "My new field";
&retVal = &newField.SetLabel("MYNEWFIELD", "My field", "My New Field", True);
/* do error checking … */
Local date &myDate = Date3(1900, 1, 1);
&retVal = &newField.SetTranslateValue("A", True, &myDate, "My New XLAT", "My XLAT");
/* do error checking … */
&retVal = &newField.Validate();
End-If;