The
gglPerson type is used to describe and modify the participants attending an event of a Google calendar.
This type of variable is used by the
gglEvent variables.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see
Declaring a variable.
// Connection to Google
Cnt is gglConnection
Cnt.Email = "balthazar@gmail.com"
Cnt.Password = "qwerty"
Cnt.ApplicationName = "MyApp-01"
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
END
...
// Retrieve the array of available calendars
arrCalendars is array of gglCalendar
arrCalendars = GglListCalendar(Cnt)
// Retrieve the events of the first calendar
GglFillCalendar(Cnt, arrCalendars[1])
// Display the participants to the first event
MyCalendar is gglCalendar = arrCalendars[1]
Participant is gglPerson
Evt is gglEvent
FOR EACH Evt OF MyCalendar.Event
Trace(Evt.Title)
FOR EACH Participant OF Evt.Guest
Trace(Participant.Caption + " (" + Participant.Email + ")")
END
END
Remarks
Properties specific to the description of gglPerson variables
The following properties can be used to handle a gglPerson variable:
| | |
Property name | Type used | Effect |
---|
Email | Character string | Email of the person. |
Caption | Character string | String representing the person (LastName-FirstName for example). |