×
Namespaces

Variants
Actions

Archived:How to get number using contact ID in PySymbiab

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.

Article Metadata
Article
Created: croozeus (23 Mar 2008)
Last edited: hamishwillee (31 May 2013)

Below is a simple Python code to get the phone number of a contact using the contact id.

db=contacts.open()
 
number=db[id].find('mobile_number') # id is the id of the contact
 
print number[0].value

See Also

This page was last modified on 31 May 2013, at 04:09.
42 page views in the last 30 days.