Contents Topics Index  <<  >>

TWallCalendar.SetCellMessageByDate method

Example

Unit

WallCalendar

Applies to

TWallCalendar

Declaration

function SetCellMessageByDate ( TargetDate : TDateTime ;
theMessage : TStringList ) : boolean ;

Description

The SetCellMessageByDate function allows you to set the cell message for an individual cell by a specific date. The TargetDate parameter is the date you wish to set the cell message for. The theMessage parameter should be a TStringList that contains the actual cell message.

If the specified TargetDate does not exist in the current calendar month and year, the function will return a false result, otherwise the result will be true.

NOTE: This procedure will copy the contents of the theMessage TStringList into the appropriate CellMessages array. You should create a temporary TStringList to pass to this procedure, populated with the appropriate text.

See also: SetCellMessage, GetCellMessageByDate , SetCellText , SetCellTextByDate