Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


How can I have all the appointments for one day ?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-09-2007, 09:54 AM
Newbie
 
Join Date: Nov 2007
Posts: 5
Default How can I have all the appointments for one day ?

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
Reply With Quote
  #2 (permalink)  
Old 11-09-2007, 04:15 PM
Senior Member
 
Join Date: May 2007
Posts: 132
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 05:55 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0