×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    England
    Posts
    27

    list phone book in vb.net

    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

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    England
    Posts
    27

    hmmm

    Can I assume that from the lack of response that what I asked previously is not possible?

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    England
    Posts
    27

    further news

    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

  4. #4
    Registered User
    Join Date
    Mar 2003
    Location
    England
    Posts
    27

    Stop panicking

    Ok
    found it.

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    1

    Re: list phone book in vb.net

    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
  •