hmCal_Get App Property

hmCal_Get App Property(area;reference;property;num;text;date) -> error

Parameter          Type             Description
area               Longint      ->  hmCal area
reference          Longint      ->  appointment reference
property           Longint      ->  property to get
num                Longint      <-  numeric value to get
text               Text         <-  text value to get
date               Datum        <-  date value to get
error              Longint      <-  errorcode

Description

With the command hmCal_Get App Property you can get all properties of an appointment. In the parameter reference you must pass an appointment id. All properties you may use are described in chapter hmCal_Set App Property.

Notice: You can use predefined Constants.

To set all properties you can use the command hmCal_Set App Property.

Example

The following example detect the end date of an appointment (id 26) and extend the end date for two days:

C_LONGINT($vl_prop_long)
C_TEXT($vt_prop_text)
C_DATE($vd_prop_date)

$vl_prop_long:=0
$vt_prop_text:=""
$vd_prop_date:=!00.00.00!
$vl_error:=hmCal_Get App Property (calArea;26;hmCal_aprop_DateTo ;$vl_prop_long;$vt_prop_text;$vd_prop_date)

$vd_prop_date:=$vd_prop_date+2

$vl_error:=hmCal_Set App Property (calArea;26;hmCal_aprop_DateTo ;$vl_prop_long;$vt_prop_text;$vd_prop_date)