DefaultValue Attribute
Data Type: smallint
4GL Access: RW
The DefaultValue attribute specifies the default value of the global variable. It determines how OpenROAD sets the global variable’s initial value when the global variable is created.
Valid values are:
DV_NULL
Behaves like DV_SYSTEM except that OpenROAD does not automatically allocate an object for class data types. Instead, it sets the associated reference variable to null.
DV_STRING
Directs OpenROAD to convert the value stored in the DefaultString attribute to the correct data type and assign that value to the global variable.
Note: You cannot use DV_STRING if the data type is a class name or blank.
DV_SYSTEM
Specifies the system default for the data type. The system defaults are:
• NULL if the global variable is nullable
• zero (0) for numeric non-nullable types
• blank for character non-nullable types
If the data type is a class, this setting automatically allocates an object of the class.
Default: DV_SYSTEM
Descriptions of system constant values and their numeric equivalents are listed in
DefaultValue Settings.
Last modified date: 06/25/2024