L
lansalot
Hi
I'm struggling with searching the Contacts on my PocketPC with
VS2005/.NET cf2 and hope someone can help please.
Specifically, the documentation for the Find method is a bit lacking
(to my eyes). You can see it here:
http://msdn.microsoft.com/library/d...Outlook_PimItemCollection_Find_1_917213a7.asp
I have no idea what I should be passing in as some sort of valid
PropertyDescriptor, nor the Key for that matter.
Can someone please help with a little example, say the simplest "find
contact for surname = 'smith'" sort of thing?
My nearest try was:
Dim o As New OutlookSession
criteria = "[LastName] = " & ControlChars.Quote & "Smith" &
ControlChars.Quote
MsgBox(o.Contacts.Items.Find(c.Properties("LastName"), criteria))
But obviously that's nowhere near right.
Also tried MsgBox(o.Contacts.Items.Find(c.Properties("LastName"),
"Smith"))
Nothing found. And it's there alright. I've seen how to use the
Restrict method, but that's not really the appropriate one to be using
so I guess I should learn to do it properly.
Thanks in advance for any help.
I'm struggling with searching the Contacts on my PocketPC with
VS2005/.NET cf2 and hope someone can help please.
Specifically, the documentation for the Find method is a bit lacking
(to my eyes). You can see it here:
http://msdn.microsoft.com/library/d...Outlook_PimItemCollection_Find_1_917213a7.asp
I have no idea what I should be passing in as some sort of valid
PropertyDescriptor, nor the Key for that matter.
Can someone please help with a little example, say the simplest "find
contact for surname = 'smith'" sort of thing?
My nearest try was:
Dim o As New OutlookSession
criteria = "[LastName] = " & ControlChars.Quote & "Smith" &
ControlChars.Quote
MsgBox(o.Contacts.Items.Find(c.Properties("LastName"), criteria))
But obviously that's nowhere near right.
Also tried MsgBox(o.Contacts.Items.Find(c.Properties("LastName"),
"Smith"))
Nothing found. And it's there alright. I've seen how to use the
Restrict method, but that's not really the appropriate one to be using
so I guess I should learn to do it properly.
Thanks in advance for any help.