Standard "Choose contact" dialog

Elrick

Member
Licensed User
Well... Again we should choose between bad and worst... Anyway, thanks to all for the help - at least i have standard "choose contact" dialog and this is why i've started this thread:)
 

JOTHA

Well-Known Member
Licensed User
Longtime User
Hello agraham,

After assigning this to an Outlook library Contact object you should be able to access all the details of the contact - but I haven't gone on to check this out yet.

... how can I do that?

Can you please explain it?

THANK YOU in advance.
 

JOTHA

Well-Known Member
Licensed User
Longtime User
Hi Forum,

Taximania wrote:
What you don't get are any other details than the contact name.

My general question is: Is it possible to get data such as "FirstName", "LastName" "HomeTelephone" "HomeStreet", etc. and putting them into several TextBoxes?

(... and how is the code for that?)

Thank you for your answers.
 

agraham

Expert
Licensed User
Longtime User
... how can I do that?.
I haven't tried this for real but something like this should work.
B4X:
  ...
  OutlookContact.New1 ' only need to do it once
  ...

If ChooseContact.Show = cOK Then ' dialog OK
  ' assign the selected contact reference to an Outlook library Contact object
 OutlookContact.Value = ChooseDialog.SelectedContact
 ' now all the properties should be available
  tbxFirstName.Text = OutlookContact.FirstName
  tbxLastName.Text = OutlookContact.LastName
  ....
End If
 

taximania

Well-Known Member
Licensed User
Longtime User
Hi Forum,

Taximania wrote:


My general question is: Is it possible to get data such as "FirstName", "LastName" "HomeTelephone" "HomeStreet", etc. and putting them into several TextBoxes?

(... and how is the code for that?)

Thank you for your answers.

All those fields are available from the sample I provided on page2 of this thread. Here it is, http://www.b4x.com/forum/code-samples-tips/3735-standard-choose-contact-dialog-2.html#post21765 If you need help with how to put the data into a textbox, you oughta learn a few more basics of b4ppc first.

Just search con.? for other numbers once you have a string match on the name's.
 

JOTHA

Well-Known Member
Licensed User
Longtime User
It works ... here is the solution ...

Hello agraham,

I haven't tried this for real but something like this should work.

Thank you very much for your help. I needed just the "one tip" how to begin it.
Your DLL-File is great (it saves time for me) :sign0188:

Attached is the solution for those who want to use it. :)
 

Attachments

  • - B4P - ChooseContactDialogWM50.9.zip
    17.6 KB · Views: 240

JOTHA

Well-Known Member
Licensed User
Longtime User
Hi taximania,

... If you need help with how to put the data into a textbox, you oughta learn a few more basics of b4ppc first.

I´ve learned ...

Thank you for your help. I used the DLL from agraham.

This forum is really a big help for newbies like me. :)
 

agraham

Expert
Licensed User
Longtime User
Top