Results 1 to 6 of 6

Thread: sync two different lists

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Germany
    Posts
    15

    Unhappy

    Hallo

    I have problems with sync two lists.
    I have two lists with different file names and I will display the difference from the two lists in a other
    listview or textbox.
    Have anyone a good Idea or a other Solution for this problem.
    Thanx for your help.
    I hope anybody can help me.

    cu

    Joerg Schuierer

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    204
    will i think we need more detail on what you are trying to do like when someone click on the list it will select one on the other list i sthat what you are doing????????????
    WHat would we do with out Microsoft.
    A lot more.

  3. #3
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    This could be quite a challenge. I am not suggesting I would be able to solve it but this is my understanding of it, maybe it will help others to help find a solution.

    You have 2 lists list1 and list2. There are items in list1 that may not be in list2, Are there any items in list2 that are not in list 1? This could mean you need 2 summary lists, one for items in list1 and not in list2 and a summary of items in list2 and not in list1.

    This would mean 2 passes, compare list1 with list2 then list2 with list1.

    Anyone else have any views on the problem?


    Things I do when I am bored: DotNetable

  4. #4
    Addicted Member
    Join Date
    Jan 1999
    Posts
    204
    it whould be easyest with listview list not the standord one from vb . Then i think you can do it from key number or key code then you can list then like from a - z , then when some one clicks on a item in list1 see if there is a keycode of what the listitem the selected in and then select it thats whould be kinda easy i will work on it hwen i get back on sunday e-mail me at [email protected] i will make an example of that
    WHat would we do with out Microsoft.
    A lot more.

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Code:
    for x=0 to list1.listcount-1
      for y=0 to list2.listcount-1
        if list1.list(x)=list2.list(y) then exit for
      next y
      if y<list2.listcount then list3.additem list1.list(y)
    next x
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Germany
    Posts
    15

    Thanx

    Thank you for your very fast answer.

    With your tips I can solve my problem.

    cu

    Joerg Schuierer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width