Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

list... data?

Options
  • 03-12-2002 3:29pm
    #1
    Registered Users Posts: 446 ✭✭


    What is the property called when ur going into a listbox

    for example imagine I have a listbox with "a,b,c,d" and another blank listbox.

    I have 4 buttons which are select, select all, remove and remove all.

    I'm able to remove data from the list but I can't transfer the data from the 1st list to 2nd.

    what do I need for it? i,e

    lstmain.?

    Many Thanks
    Kegan5


Comments

  • Registered Users Posts: 629 ✭✭✭str8_away


    To transer data from list1 to list2
    list2.list(x) = list1.list(y)
    'if list2 dos not have that amount of item it will create it.

    To transer WHOLE list
    you need for loop
    Dim i as Integer
    For i = 0 to list1.ListCount - 1 'list start with index 0
    list2.list(i) = list1.list(i)
    Next i

    Try "Help" for more info.
    Help -> Content ->Visual Tool and Languages -> Visual Basic Documentation -> Language Refrence -> Objects -> L -> ListBox Control


Advertisement