GetAppointment

Description

Gets an appointment from Pocket Outlook.

Applies to

POOM objects

Syntax

POOMAppointment objectname.GetAppointment (index)

Argument

Description

objectname

The name of the POOM object

index

Integer for the index of the appointment that you want to get

Returns

POOMAppointment. Use the IsValid function to confirm that a valid appointment was returned.

Usage

A user must be logged in to a POOM object to get an appointment from Pocket Outlook.

Examples

Example 1

The following example logs in to the Pocket Outlook session and retrieves the first appointment in the list of appointments:

// global variable: g_poom
int li_return

g_poom = CREATE POOM
// log in to the Outlook session
li_return = g_poom.Login()

myAppt = g_poom.getAppointment( 1 )
if IsValid(myAppt) then
   // Use myAppt
end if
...
g_poom.Logout()

Example 2

This example retrieves the first appointment and changes the subject and location:

integer li_rc
POOMAppointment appt

appt = g_poom.GetAppointment( 1 )
appt.Subject += " with Andre" 
appt.Location = "Blue Room
li_rc = appt.update()

appt.display()

See also