![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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 |
|
||||
|
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 |
|
||||
|
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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |