The
Calendar type is used to handle a calendar (or organizer) associated with a user account or found on the device. You have the ability to list the appointments of the calendar via
AppointmentListCalendar.
The characteristics of this calendar can be read by several WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see
Declaring a variable.
// Fills a list with the calendars available on the device
arrCalendar is array of Calendar = AppointmentListCalendar()
FOR EACH Calendar OF arrCalendar
ListAdd(LIST_List1, Calendar.Name)
END
Remarks
Properties specific to Calendar variables
The following properties can be used to handle a Calendar:
| | |
Property name | Type used | Effect |
---|
AccountName | Character string | Name of the user account with which the calendar is associated. If this property corresponds to an empty string (""), the calendar is associated with no account: it is stored locally on the device. |
AccountType | Character string | Type of account. If this property corresponds to an empty string (""), the calendar is associated with no account and it is stored locally on the device. |
Color | Integer | Color associated with the calendar. This color is the result of the following formula: Color = 65536 * Blue Component + 256 * Green Component + Red Component. |
ID | 8-byte integer | Identifier associated with the calendar. This property will be automatically filled when reading the calendar. We do not advise you to store this identifier beyond the lifetime of the application because this identifier can be modified when synchronizing the calendar. |
Name | Character string | Name of the calendar. |
Caution: The properties of
Calendar type are read-only and they are automatically filled when the calendars are read by
AppointmentListCalendar.
Remark: These properties can be used with one of the following syntaxes:
- <Variable name>.<Property name>
- <Variable name>.<Property name>
Functions that use Calendar variables
| |
AppointmentAdd | Adds an appointment: - in a Lotus Notes or Outlook calendar.
- in a calendar on a mobile device (Android or iOS).
|
AppointmentList | Lists the appointments found on the mobile device (Android/iOS) and corresponding to the specified criteria. |
AppointmentListCalendar | Lists the calendars available on the mobile device (Android/iOS). |