Parameter | Description |
---|---|
iField | Number of the column in the table |
Property String Field_Default_Value
Write Access: | Set Field_Default_Value iField to StringVariable/Value |
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.
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
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 sValueSee Also