hmCal_Get Visible Weeks
hmCal_Get Visible Weeks(area) -> weeks
Parameter Type Description
area Longint -> hmCal area
weeks Longint <- number of weeks
The command hmCal_Get Visible Weeks returns the number of visible weeks of the calendar in the month view.
Notice: The command only returns the number you have set by the command hmCal_SET VISIBLE WEEKS. If the command returns 0, it means that the month view shows the standard view (5 or 6 weeks).
The following example returns the number of visible weeks defined by the command hmCal_SET VISIBLE WEEKS:
C_LONGINT($vl_weeks)
$vl_weeks:=hmCal_Get Visible Weeks(hmCal)