![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
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 |
|
|||
|
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. Code:
'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
Regards,
__________________
Rioven Sony Ericsson XPERIA X1i WM6.1 480x800 Display Resolution with QWERTY keyboard Last edited by Rioven : 11-09-2007 at 04:18 PM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to find recurring appointments? | Collie | Questions & Help Needed | 2 | 10-03-2007 12:47 PM |