PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Lists the calendars available on the mobile device (Android/iOS).
Versions 21 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 21
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
// Fills a list with the calendars available on the device
arrCalendar is array of Calendar
arrCalendar = AppointmentListCalendar()
FOR EACH Calendar OF arrCalendar
ListAdd(LIST_List1, Calendar..Name)
END
Syntax

Listing the available calendars Hide the details

<Result> = AppointmentListCalendar()
<Result>: Array of Calendar variables
Array of Calendar variables initialized with the list of available calendars.
If an error occurred, the array is empty and the ErrorOccurred variable is set to True. To find out the error details, use ErrorInfo.
This syntax is available from version 180056.

Listing the calendars that correspond to the specified filters Hide the details

<Result> = AppointmentListCalendar(<Filter> , <Sought Value>)
<Result>: Array of Calendar variables
Array of Calendar variables initialized with the list of available calendars.
If an error occurred, the array is empty and the ErrorOccurred variable is set to True. To find out the error details, use ErrorInfo.
<Filter>: Integer constant
Property on which the list of calendars must be filtered:
aptIdentifierFilters on the identifiers of calendars. An exact-match search is performed.
aptNameFilters on the name of the calendar. A "Contains" search is performed.
aptAccountNameFilters on the name of the account to which the calendar belongs. A "Contains" search is performed.
aptAccountTypeFilters on the type of the account to which the calendar belongs. A "Contains" search is performed.
<Sought Value>: Character string (with quotes)
Value sought in the filtered properties of calendar. This search is not case sensitive.
Remarks

Special cases

  • Android AppointmentListCalendar can be used in the emulator but not in the simulator.
  • To list the appointments found in a calendar, use AppointmentList.
  • Android AppointmentListCalendar is available for the devices running an Android version greater than or equal to version 4.0 (api level 14). A fatal error occurs if the function is used with an earlier system version.
    Reminder: To find out the version of Android system on which the application is run, use SysAndroidVersion.
Android

Required permissions

The call to this function modifies the permissions required by the application.
Required permission: READ_CALENDAR
This permission allows the application to read the calendar data of the user.
Components
Android wd230android.jar
Minimum required version
  • Version 18
Comments
Click [Add] to post a comment