Displays the specified date in bold.
MonthCalendar control
controlname.SetBoldDate ( d, onoff {, rt } )
Argument |
Description |
---|---|
controlname |
The name of the MonthCalendar control in which you want to clear the bold dates |
d |
The date to be set in bold |
onoff |
A boolean specifying whether the date is to be set to bold. Values are:
|
rt (optional) |
A value of the MonthCalRepeatType enumerated variable. Values are:
|
Integer. Returns 0 for success and one of the following negative values for failure:
You can use the SetBoldDate function to specify that a selected date, such as an anniversary date, displays in bold. If a specific date has been set to bold, you can clear the bold setting by passing false as the second parameter. ClearBoldDates clears all such settings.
This example sets the date January 5, 2005 to bold in the control mcVacation:
integer li_return
Date d
d = date("January 5, 2005")
li_return = mcVacation.SetBoldDate( d, true)
This example sets the fifth day of every month to bold in the control mcVacation:
integer li_return
Date d
d = date("January 5, 2005")
li_return = mcVacation.SetBoldDate( d, true, Monthly!)
This example sets the date January 5 to bold for all years in the control mcVacation:
integer li_return
Date d
d = date("January 5, 2005")
li_return = mcVacation.SetBoldDate( d, true, Yearly!)
This example clears the bold setting for the fifth day of every month in the control mcVacation:
integer li_return
Date d
d = date("January 5, 2005")
li_return = mcVacation.SetBoldDate( d, false, Monthly!)