The value of the dummy zero date.
Driver
DataFlex ODBC Driver, revision 5 and higher
String, temporary
Read/Write
Any legal date value on the back end
Use cli.pkg
Get_Attribute DF_DRIVER_DUMMY_ZERO_DATE_VALUE of {driverNumber} to {StringVariable}
Set_Attribute DF_DRIVER_DUMMY_ZERO_DATE_VALUE of {driverNumber} to {StringVariable}
Sets up the value of the dummy zero date. This should be set to the lowest possible date value that the database supports. In most databases the default 0001-01-01 can be used. Some databases however support a different lowest possible date value.
This default value is copied to database level when logging in to the database. The actual value in use for an active connection is that on database level. This attribute merely reflects a default.
Function DriverIndex String sDriver Returns Integer
String sCurrentDriver
Integer iNumberOfDrivers iDriver iCount
Move 0 to iDriver
Get_Attribute DF_NUMBER_DRIVERS to iNumberOfDrivers
For iCount From 1 To iNumberOfDrivers
Get_Attribute DF_DRIVER_NAME of iCount To sCurrentDriver
If ( Uppercase(sCurrentDriver) = Uppercase(sDriver) ) Begin
Move iCount to iDriver
End
Loop
Function_Return iDriver
End_Function // DriverIndex
Procedure ShowDriverAttribute
String sAttribValue
Integer iDriver
Get DriverIndex "MSSQLDRV" to iDriver
Get_Attribute DF_DRIVER_DUMMY_ZERO_DATE_VALUE of iDriver to sAttribValue
Showln "Dummy zero date: "sAttribValue
End_Procedure
The sample code above shows the current setting for a given driver.