SetBoldDate
PowerScript function
Description
Displays the specified date in bold.
Applies to
MonthCalendar control
Syntax
|
1 |
controlname.SetBoldDate ( d, onoff {, rt } ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the MonthCalendar control in which you want to |
|
d |
The date to be set in bold |
|
onoff |
A boolean specifying whether the date is to be set to true — Set the date to bold false — Clear the date’s bold setting |
|
rt (optional) |
A value of the MonthCalRepeatType enumerated variable. Once! — Set or clear the bold setting for the specified Monthly! — Using the day portion of the specified date, Yearly! — Using the day and month portion of the |
Return value
Integer.
Returns 0 for success and one of the following negative values for
failure:
-1 — Invalid arguments
-2 — Unknown failure
Usage
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.
Examples
This example sets the date January 5, 2005 to bold in the control
mcVacation:
|
1 2 3 4 5 |
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:
|
1 2 3 4 5 |
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:
|
1 2 3 4 5 |
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:
|
1 2 3 4 5 |
integer li_return Date d d = date("January 5, 2005") li_return = mcVacation.SetBoldDate( d, false, Monthly!) |
See also