hmCal_Find Appointment By ID

hmCal_Find Appointment By ID(area;reference) -> result

Parameter          Type             Description
area               Longint      ->  hmCal area
reference          Longint      ->  appointment id
result             Longint      <-  0=not exists, 1=exists

Description

The command hmCal_Find Appointment By ID checks if there is an appointment with a specific reference id.

Example

The following example checks, if there is an appointment with the id 45:

C_LONGINT($vl_result)

$vl_result:=hmCal_Find Appointment By ID(hmCal;45)

If($vl_result=1)
 Alert("Appointment is displayed in the calendar")
Else
 Alert("Appointment is NOT displayed in the calendar")
End if