Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

list... data?

  • 03-12-2002 03:29PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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