Contents Topics Index  <<  >>

TWallCalendar.GetCellCoordinatesByDate method


Unit

WallCalendar

Applies to

TWallCalendar

Declaration

Function GetCellCoordinatesByDate ( TargetDate : TDateTime ;
var TheColumn , TheRow : integer ) : boolean ;

Description

The GetCellCoordinatesByDate function allows you to find the cell coordinates for a given date on the current calendar. If the date specified by the TargetDate parameter does not exist in the current calendar, the function will return a false result. Otherwise, the result will be true and the TheColumn and TheRow parameters will contain the coordinates of the cell in the current calendar.

This function can be useful if you want to access the CellMessages array directly, and you only have a date to work with.

See also: CellMessages