hmCal_Delete Appointment
hmCal_Delete Appointment(area;reference) -> error
Parameter Type Description
area Longint -> hmCal area
reference Longint -> appointment id
error Longint <- error-code
With the command hmCal_Delete Appointment you can delete an existing appointment created with the command hmCal_Add Appointment.
You use this command only very rarely, because the callback method releases the event hmCal_UpdateAppointments. This event deletes all appointments in the memory, so you have to create all appointments again (see chapter hmCal_INSTALL CALLBACK).
The following example deletes the appointment with the reference 89:
C_LONGINT($vl_error)
$vl_error:=hmCal_Delete Appointment(hmCal;89)