SetDBFieldFormat
Mon 01 January 2018Syntax
SetDBFieldFormat(Field.FieldName, FormatFamily [, FamilyName, DisplayName])
Description
Use the SetDBFieldFormat function to change the format family for a field.
Use the StoredFormat Field property to determine the existing format family for a field.
If you only want to change the display format of a single field at runtime, and not change the database field, use the DisplayFormat Field property.
Note: This function only works with character fields.
Parameters
Field or Control |
Definition |
---|---|
FieldName |
Specify the name of the field that you want to modify. This name must be prefixed by the reserved word Field . |
FormatFamily |
Specify the new format family of the field. The valid values are:
|
FamilyName |
Specify a new family name. This parameter is optional, and only valid if FormatFamily is specified as custom (%FormatFamilyType_Custom). |
DisplayName |
Specify a new display name. This parameter is optional, and only valid if FormatFamily is specified as custom (%FormatFamilyType_Custom). |
Returns
A constant value. The values are:
Value |
Description |
---|---|
%MDA_Success |
Function completed successfully. |
%MDA_Failure |
Function didn't complete successfully. |