×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    21

    Selecting a phone number from the phone book

    Hi, i need to select a phone number from the phonebook. i currently have this code:

    RPbkViewResourceFile pbkrf ( *iCoeEnv );
    CPbkContactEngine* engine;
    CPbkSingleItemFetchDlg::TParams params;

    engine=CPbkContactEngine::NewL(&this->iCoeEnv->FsSession());
    CPbkSingleItemFetchDlg* dlg=CPbkSingleItemFetchDlg::NewL(params, *engine);
    pbkrf.OpenL();
    dlg->ExecuteLD();
    pbkrf.Close();
    CPbkContactItem* contact=engine->OpenContactL(params.iContactItem->Id());
    TPbkContactItemField* field=contact->FindField(params.iContactItemField->FieldInfo().FieldId());
    TBuf<60> buf;
    field->GetTextL(buf);
    delete engine;

    all works nicely, except that the contacts First name and last name appear as fields. is there a way to stop them from showing? or another way of doing this? thanks in advance

  2. #2
    Registered User
    Join Date
    Feb 2006
    Posts
    21

    Re: Selecting a phone number from the phone book

    ok. sorted it. if anyone cares, email me.... daalmightykebab@hotmail.com

Similar Threads

  1. WML & WMLSCript problem ????
    By gemini_shooter in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-14, 06:02
  2. Own Phone Number
    By rrrs in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2004-06-28, 17:51
  3. Problem with reading phone book details in noka 6210
    By master131181 in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2004-05-02, 14:54
  4. Mistake in Phone book application of NOKIA 2100
    By siri48 in forum General Development Questions
    Replies: 1
    Last Post: 2003-11-19, 11:16
  5. Multi entry phone book
    By hemanstani in forum General Messaging
    Replies: 1
    Last Post: 2003-05-13, 12:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •