Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Show contact details ?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2008, 10:04 AM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 237
Awards Showcase
Beta Tester 
Total Awards: 1
Default Show contact details ?

I have a list of contacts.
I can show details in code by
label1.text=con.FirstName or
label1.text=con.LastName

If I have a combobox with several options in it, eg

FirstName
NickName
LastName

How would I be able to do
label1.text=con.(combobox.item(x))

Hope this make sense
It's doin mi ed in
__________________
Endemol
Waste of space

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #2 (permalink)  
Old 07-05-2008, 10:27 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 649
Default

Hi taximania,

I'm sure to understand your wish but I don't think that it is possisble in basic4ppc.
The control statement allows only the dynamic naming of controls but not of control methods or functions. You are looking for something like the interpret statement in rexx.

If someone is able to correct my answer, I would really appreciate this...


specci48
Reply With Quote
  #3 (permalink)  
Old 07-05-2008, 10:50 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,757
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

One way is to stick all the contacts and the required properties in a 2D array and look them up from there.

It would be neater with a structure type "Dim Type (F,N,L) cons(0) but I can't at the moment get it to reDim outside Sub Globals as in
"Dim Type (F,N,L) cons(PimColl.Count)" which gives a syntax error I'll ask Erel if this is possible.

Code:
Dim cons(0,0) ' intial declaration in Sub Globals

Dim cons(PimColl.Count, 3) ' make it the right size
For i = 0 to PimColl.Count -1
  Con.Value = PimCol.GetItem(0)
  Cons(i,0) = con.FirstName 
  Cons(i,1) = con.NickName
  Cons(i,2) = con.LastName
Next

label1.text=con.(whichcontact, combobox.item(x)) ' look it up
Reply With Quote
  #4 (permalink)  
Old 07-05-2008, 08:19 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 237
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Staring me in the face

I'd already got an array for my top 12 contacts,
Dim Type(nam,num,text,img,tra) cont(13)
' Don't question numbers, eg: 13. It's how I work :-) '

Never thought of setting another array for the rest of them.

Cheers Agraham
__________________
Endemol
Waste of space

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net

Last edited by taximania : 07-05-2008 at 08:23 PM.
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Contact.update verschiebt Collection-List Paulsche German Forum 0 10-01-2008 12:08 AM
Contact.WebPage in Oulook.dll does not work JOTHA Bug Reports 4 09-19-2008 11:42 AM
Custom contact list Dinis Questions & Help Needed 9 08-31-2008 12:18 PM
currently-selected email message, contact, or appointment John F. Eldredge Questions & Help Needed 2 04-30-2008 01:21 PM
after used showtodayscreen how to show again blackiice Questions & Help Needed 3 10-25-2007 04:26 AM


All times are GMT. The time now is 02:47 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0