SetBoldDate PowerScript function
Description
Displays the specified date in bold.
Controls
MonthCalendar control
Syntax
|
1 |
<span>controlname</span>.<span>SetBoldDate</span> ( <span>d</span>, <span>onoff</span> {, <span>rt </span>} ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the MonthCalendar control |
|
d |
The date to be set in bold |
|
onoff |
A boolean specifying whether the date
|
|
rt (optional) |
A value of the MonthCalRepeatType enumerated
|
Return Values
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 |
integer li_return |
|
1 |
Date d |
|
1 |
d = date("January 5, 2005") |
|
1 |
<br>li_return = mcVacation.SetBoldDate( d, true) |
This example sets the fifth day of every month to
bold in the control mcVacation:
|
1 |
integer li_return |
|
1 |
Date d |
|
1 |
d = date("January 5, 2005") |
|
1 |
<br>li_return = mcVacation.SetBoldDate( d, true, Monthly!) |
This example sets the date January 5 to bold for
all years in the control mcVacation:
|
1 |
integer li_return |
|
1 |
Date d |
|
1 |
d = date("January 5, 2005") |
|
1 |
<br>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 |
integer li_return |
|
1 |
Date d |
|
1 |
d = date("January 5, 2005") |
|
1 |
<br>li_return = mcVacation.SetBoldDate( d, false, Monthly!) |