Overview
Previous  Next

A PimCollection objects holds a list of Pocket Outlook appointments, Pocket Outlook contacts or Pocket Outlook tasks.
When you create a list you specify its type.
Accessing a specific item in the list is done using an Appointment, Contact or Task object.
If you have changed a property of an existing item you should use the item's Update method to apply the changes.

Example (lists all contacts names in a listbox):
'Contact is a Contact object and ContactsCollection is a PimCollection object.
Sub Globals
      
End Sub

Sub App_Start
      Form1.Show
      Contact.New1
      ContactsCollection.New1("Contacts")
      ContactsCollection.SortItems("FirstName",false) 'sorts the contacts using the first name field.
      For i = 0 to ContactsCollection.Count - 1
            Contact.Value = ContactsCollection.GetItem(i)
            ListBox1.Add(Contact.FirstName & " " & Contact.LastName) 'Add the contact's first and last name to ListBox1.
      Next
End Sub