Reference > TDBHolidayX Object > TDBHolidayX Object Properties > Value Property (TDBHolidayX) |
Value Property (TDBHolidayX)
The Value property returns or sets the date to process.
object.Value= variant
Read/Write at run time. Not available at design time.
Today's date is the default
This property is used together with ValueType property, returning the day type (workday, holiday, weekend) of the specified date. A Null value can be applied but nothing will then be processed. If holiday styles or weekends are not set, the ValueType will always return a "workday".
This is the default property of the TDBHolidayX object.
Many methods in the TDBHolidayX object use an optional date argument which means the user does not necessarily need to specify it.
HolidayMgr.Value = CDate(Text1.Text)
HolidayMgr.Value = HolidayMgr.AdjustDate(, dbiPrevWorkday)
When the date argument is not specified, the date in the Value property will be used.
Null value is not a valid date that can be converted to a date, but can be used as a Variant subtype, indicating that a variable or a property contains no valid data.
See Also