hmCal_Add Relation

hmCal_Add Relation(area;reference;from;to;type) -> error

Parameter          Type             Description
area               Longint      ->  hmCal area
reference          Longint      ->  reference
from               Longint      ->  from appointment
to                 Longint      ->  to appointment
type               Longint      ->  relationtype
error              Longint      <-  error code


The command hmCal_Add Relation creates a new relation between two appointments. You must set your own unique reference number into the parameter reference. You must pass the appointment references into the parameters from and to. The parameter type defines one of four releation types:

Read more about relationtypes in chapter Relations.
You can also use predefined Constants:

hmCal_rel_EndToBegin           1
hmCal_rel_BeginToBegin         2
hmCal_rel_EndToEnd             3
hmCal_rel_BeginToEnd           4

Releations are only visible in the project view.


The following example creates a relation between two appointments:


$vl_error:=hmCal_Add Relation (hmCal;1;89;256;1)