Field_Default_Value - DataDictionary

Sets the default value of a table column without setting the DDO's Changed_State to True

Type: Property

Access: Write-Only

Data Type: String

Parameters: Integer iField

ParameterDescription
iFieldNumber of the column in the table


Syntax
 Property String Field_Default_Value

Write Access: Set Field_Default_Value iField to StringVariable/Value


Description

Field_Default_Value sets a column value without setting the DataDictionary object's (DDO's) Changed_State to True. This is used to set defaults inside Field_Entry_msg messages.

Sample

This sample sets the default value of the Customer.Date column to 0/01/2008.
Note that date values must be coded using U.S. date format.

Set Field_Default_Value Field Customer.Date to 01/01/2008



Field and File_Field Interfaces

Many of the DataDictionary methods contain a two variants of the same message: Field_Message and File_Field_Message. For a complete description of these messages please refer to The Field and File_Field DD Interfaces.

The Field_ version of a message must use the keyword FIELD to identify the Table.Column name. The File_Field_ version must use the keyword FILE_FIELD to identify the Table.Column name. These should never be mixed!

// When using Field_ message use the FIELD keyword
Set Field_Default_Value Field Customer.Name to sValue

// When using the File_Field_ message use the FILE_FIELD keyword
Set File_Field_Default_Value of oCustomer_DD File_Field Customer.Name to sValue

See Also

File_Field_Default_Value | Field_Defaults