Discussion Board
list phone book in vb.net
2005-01-29, 22:14
#1
Registered User
Hi
Can anyone tell me how to
1. Get a count of the number of items in the phone book
2. List these numbers in a list box.
I am using VB.Net and SDK3
Thanks in advance
hmmm
2005-02-03, 19:22
#2
Registered User
Can I assume that from the lack of response that what I asked previously is not possible?
further news
2005-02-07, 22:30
#3
Registered User
I have tried the following code in VB.NET
But pIPnd3 is always nothing, any ideas
Using 6310i which is connected
Thanks
Private Sub list_phonebook()
Dim pIContact2 As PhonebookAdapterDS3.IContact2
Dim pIPnd3 As PhonebookAdapterDS3.IPhonebook3
Dim location, x As Integer
Dim pMaxAmount, pFull, pFractation As Integer
location = 0
Try
pIPnd3.GetMemoryCaps(PhonebookAdapterDS3.PhysicalMem.PHYS_MEM_PHONE, PhonebookAdapterDS3.LogicalMem.LOG_MEM_PD, pMaxAmount, pFull, pFractation)
Catch
End Try
pIContact2 = pIPnd3.GetContact(PhonebookAdapterDS3.SearchMode.MODE_FIRST, PhonebookAdapterDS3.SearchKey.KEY_LOCATION, PhonebookAdapterDS3.PhysicalMem.PHYS_MEM_PHONE, PhonebookAdapterDS3.LogicalMem.LOG_MEM_PD, location, "")
ShowContact(pIContact2)
pIContact2 = Nothing
For x = 1 To pFull - 1 Step 1
pIContact2 = pIPnd3.GetContact(PhonebookAdapterDS3.SearchMode.MODE_NEXT, PhonebookAdapterDS3.SearchKey.KEY_LOCATION, PhonebookAdapterDS3.PhysicalMem.PHYS_MEM_PHONE, PhonebookAdapterDS3.LogicalMem.LOG_MEM_PD, location, "")
ShowContact(pIContact2)
pIContact2 = Nothing
Next x
pIPnd3 = Nothing
End Sub
Stop panicking
2005-02-08, 20:37
#4
Registered User
Re: list phone book in vb.net
2008-03-02, 17:19
#5
Registered User
Where did you find it??? and do you have sample code???
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules