Show contact details ?

Discussion in 'Questions (Windows Mobile)' started by taximania, Jul 5, 2008.

  1. taximania

    taximania Well-Known Member Licensed User

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

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


    How would I be able to do

    Hope this make sense :sign0148:
    It's doin mi ed in :confused:
  2. specci48

    specci48 Well-Known Member Licensed User

    Hi taximania,

    I'm sure to understand your wish but I don't think that it is possisble in basic4ppc. :sign0013:
    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...

  3. agraham

    agraham Expert Licensed User

    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.

    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) = con.FirstName 
    1) = con.NickName
    2) = con.LastName

    combobox.item(x)) ' look it up
  4. taximania

    taximania Well-Known Member Licensed User

    Staring me in the face :signOops:

    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 :sign0188:
    Last edited: Jul 5, 2008
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice