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.
B4X:
'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
Form1.Show
PimCol.New1("Appointments")
Appointment.New1
mydate="11/25/2007"
DateFormat("mm/dd/yyyy")
i = 0
Do
Appointment.Value = PimCol.GetItem(i)
i = i + 1
If myDate= Date(Appointment.Start)Then
listbox1.Add(Appointment.subject) 'collect to a control listbox1
End If
Loop While i < PimCol.Count
End Sub
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.