Sets any number of dates and date ranges to the same visual style.

Syntax

rv = Send_Message(Ctrl, "OLE.SetDayStyles", Style, Days)

Parameters

ParameterDescription
StyleThe new style to be applied to the given days
DaysAn @FM delimited list of dates and date ranges that will receive the new style

Remarks

The SetDayStyle method is a convenient way of setting the visual style of any number of dates and date ranges. The Style parameter uses the same multivalue structure as the DayStyle property. However, with this method, you can set any number of days to the same style in one call whereas the DayStyle property requires a separate call for each date or date range.

The Days parameter is an @FM delimited list of dates or date ranges. For single dates, the field is a single integer representing a single date ing OpenInsight's internal format. For date ranges, the field is two integers separated by a dash '-' character. You can supply any combination of single dates or date ranges in any order. All dates in the list will be set to the given style.

Example

// Set style to Bold Red 
Style = "" 
Style<1> = "Red" 
Style<3> = @SVM:@SVM:700 

// Set a single date followed by a date range 
Days = "" 
Days<1> = "15250" 
Days<2> = "15260-15266" 

// Make the call 
Send_Message(@Window:".OLE_DATEPICKER", "OLE.SetDayStyles"

See Also

DayStyle

  • No labels