hmCal_Set Relation Type

hmCal_Set Relation Type(area;reference;type) -> error

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


The command hmCal_Set Relation Type sets the relation type for an existing relation you already have created with hmCal_Add Relation.

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


The following example sets a new type for an existing relation:


$vl_error:=hmCal_Set Relation Type (hmCal;781;hmCal_rel_EndToEnd)