SetDefault
Mon 01 January 2018Syntax
SetDefault([recordname.]fieldname)
Description
Use the SetDefault function to set a field to a null value, so that the next time default processing occurs, it is set to its default value: either a default specified in its record field definition or one set programmatically by PeopleCode located in a FieldDefault event. If neither of these defaults exist, the Component Processor leaves the field blank.
Note: This function remains for backward compatibility only. Use the SetDefault field class property instead.
Blank numbers correspond to zero on the database. Blank characters correspond to a space on the database. Blank dates and long characters correspond to NULL on the database. SetDefault gives each field data type its proper value.
See .
Parameters
Field or Control |
Definition |
---|---|
[recordname.]fieldname |
Specify a field designating the fields that you want to set to its default value. |
Returns
Optionally returns a Boolean value indicating whether the function executed successfully.