Adding values to array

Discussion in 'Questions (Windows Mobile)' started by Softselect, Dec 13, 2008.

  1. Softselect

    Softselect Member Licensed User

    Hi everyone
    I have never worked with arrays and i want to add all processes (open Window names) to an array and then pick one form an listbox
    I have tried adding to a listbox but that doesn't work dz.Getprocesses only seems to work with arrays
    I am not sure of how to do it:confused:
    please help
    thanks Friedrich
     
  2. Cableguy

    Cableguy Expert Licensed User

    To populate a combobox or listbox with an array, try the following:

    for x = 0 to ArrayLen(Array())-1
    Combobox.Add(Array(x))
    Next
     
  3. Softselect

    Softselect Member Licensed User

    Thank you Cableguy
    I have had some succses but now i am stuck again,
    i keep going over it but I am not comming up with a solution:confused:
    please help
    thanks Friedrich
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I recommend you to use an ArrayList instead of a ComboBox.
    ArrayLists support the IndexOf method which will allow you to easily find the requested item.
     
  5. Softselect

    Softselect Member Licensed User

    Hi Erel,
    I think I am in way too deep for my programming experiance
    I am no even more confused, the arraylist does not display and even if it did there is no way of picking form it (does not allow events, in the form designer). i have tried to use "EXCEL" because this was visable in my combobox version.
    please help
    thanks Friedrich
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Sorry, my mistake. I didn't notice that you want to show a list to the user.
     
Loading...
  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