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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

list... data?

  • 03-12-2002 2: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