Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.

Standard "Choose contact" dialog

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 01-31-2009, 09:38 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 64
Default

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
Reply With Quote
  #22 (permalink)  
Old 02-09-2009, 07:27 PM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Schwäbisch Gmünd
Posts: 353
Default

Hello agraham,

Quote:
Originally Posted by agraham View Post
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 | Greetz from the Schwabenländle.
Pocket-PC: HTC HD2 (Dual-Boot WindowsMobile 6.51 + Android 2.2 Froyo)
Reply With Quote
  #23 (permalink)  
Old 02-10-2009, 07:52 AM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Schwäbisch Gmünd
Posts: 353
Default

Hi Forum,

Taximania wrote:
Quote:
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.
__________________
JOTHA | Greetz from the Schwabenländle.
Pocket-PC: HTC HD2 (Dual-Boot WindowsMobile 6.51 + Android 2.2 Froyo)
Reply With Quote
  #24 (permalink)  
Old 02-10-2009, 11:35 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by JOTHA View Post
... how can I do that?.
I haven't tried this for real but something like this should work.
Code:
  ...
  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
Reply With Quote
  #25 (permalink)  
Old 02-10-2009, 04:55 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by JOTHA View Post
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.basic4ppc.com/forum/code-...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.

Quote:
Just search con.? for other numbers once you have a string match on the name's.
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #26 (permalink)  
Old 02-11-2009, 12:24 AM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Schwäbisch Gmünd
Posts: 353
Arrow It works ... here is the solution ...

Hello agraham,

Quote:
Originally Posted by agraham View Post
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)

Attached is the solution for those who want to use it.
Attached Files
File Type: zip - B4P - ChooseContactDialogWM50.9.zip (17.6 KB, 30 views)
__________________
JOTHA | Greetz from the Schwabenländle.
Pocket-PC: HTC HD2 (Dual-Boot WindowsMobile 6.51 + Android 2.2 Froyo)
Reply With Quote
  #27 (permalink)  
Old 02-11-2009, 12:30 AM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Schwäbisch Gmünd
Posts: 353
Default

Hi taximania,

Quote:
Originally Posted by taximania View Post
... 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.
__________________
JOTHA | Greetz from the Schwabenländle.
Pocket-PC: HTC HD2 (Dual-Boot WindowsMobile 6.51 + Android 2.2 Froyo)
Reply With Quote
  #28 (permalink)  
Old 02-11-2009, 04:40 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by JOTHA View Post
Your DLL-File is great (it saves time for me)
Thanks. You may want to look at this "proper" version of it. http://www.basic4ppc.com/forum/addit...er-libray.html You can choose from amongst a contact's properties as well as choose a contact from a list. You can also pre-filter the list for the user to choose from if required.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auslesen einer Tabelle in eine Textbox und löschen von "0,00-Ergebnissen" JOTHA German Forum 8 11-29-2008 08:50 AM
Cannot start B4PP anymore on desktop: "A problem was encountered" Frank Questions (Windows Mobile) 5 11-11-2008 10:03 AM
"AddEvent" and "buttonUp/buttonDown" Byak@ Questions (Windows Mobile) 12 09-10-2008 03:04 PM
Is there any thing like Visual Basic "Tabbed dialog control" in Basic4ppc? mozaharul Questions (Windows Mobile) 6 03-23-2008 11:07 AM
calling the device's "Programs" or "settings" screens HarleyM Questions (Windows Mobile) 0 12-05-2007 02:59 AM


All times are GMT. The time now is 10:23 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0