How can I have all the appointments for one day ?

Discussion in 'Questions (Windows Mobile)' started by Berurier, Nov 9, 2007.

  1. Berurier

    Berurier Member


    I want to get all the appointements for a day specified.

    I tried outlook.finditem("Start",dateparse(myDate) but it have all the appointments of my pocket outlook

    How can i do to have only the appointments of the day ?

    Thank you
  2. Rioven

    Rioven Active Member Licensed User

    Hi Berurier,

    This solution will search all appointments and collect only items with date you have specified. you can add 'sortItem' method to shorten the search process.

    'load component 'outlook.dll'
       'add object pimcollection called 'pimcol' 
       'and appointment called 'appointment'

    'add control 'listbox1'

    Sub Globals
    'Declare the global variables here.
    End Sub

    Sub App_Start

             i = 
                Appointment.Value = PimCol.GetItem(i)     
                i = i + 
    If myDate= Date(Appointment.Start)Then
    'collect to a control listbox1
                End If
    Loop While i < PimCol.Count

    End Sub

    Last edited: Nov 9, 2007
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice