|
-
Nov 23rd, 2000, 07:35 AM
#1
Thread Starter
New Member
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
-
Nov 23rd, 2000, 08:31 AM
#2
Addicted Member
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.
-
Nov 23rd, 2000, 08:32 AM
#3
Fanatic Member
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?
-
Nov 23rd, 2000, 08:39 AM
#4
Addicted Member
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.
-
Nov 23rd, 2000, 09:48 AM
#5
transcendental analytic
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.
-
Nov 23rd, 2000, 10:00 AM
#6
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|