SetDBFieldCharDefn
Mon 01 January 2018Syntax
SetDBFieldCharDefn(Field.FieldName, Length [, FormatFamily])
Description
Use the SetDBFieldCharDefn function to create a field definition of type character, with the indicated name, length, and format family.
Note: After using this function, you should use the SetDBFieldLabel function to define the label for the new field.
Parameters
| 
      Field or Control  | 
    
      Definition  | 
   
|---|---|
| Fieldname | 
      Specify the name of the new field that you want to create. This name must be prefixed by the reserved word Field .  | 
   
| Length | 
      Specify the length of the new field as a number.  | 
   
| FormatFamily | 
      Specify the format family of the new field. This parameter is optional: the default value is upper case. The valid values are: 
  | 
   
Returns
A constant value. The values are:
| 
       Value  | 
     
       Description  | 
    
|---|---|
| 
       %MDA_Success  | 
     
       Bulk operation completed successfully.  | 
    
| 
       %MDA_Failure  | 
     
       Bulk operation did not complete successfully.  | 
    
| 
       %MDA_Duplicate  | 
     
       The field specified by FieldName already exists.  | 
    
| 
       %MDA_FieldFmtLength  | 
     
       The specified length conflicts with the specified format family and was overwritten when the field was created.  |