IPB

Welcome Guest ( Log In | Register )

 
Closed TopicStart new topic
> [VB6]Removing double entries from a listbox
KiLLeR
post Nov 21 2006, 01:18 AM
Post #1


LO!L!1
******

Group: Trusted
Posts: 1,969
Joined: 26-December 03
From: Las Vegas, Nevada
Member No.: 208



anyone know how to do this?


--------------------
QUOTE(Curdy)
xCurdy: IM PISSED
heyuwitheface: why?
xCurdy: cuz u r 1337

Go to the top of the page
 
+Quote Post
ProXie
post Nov 21 2006, 02:38 AM
Post #2


<3 kB
Group Icon

Group: +Staff
Posts: 3,125
Joined: 28-December 03
Member No.: 211



Unless VB is an even more useless language than I thought, I'm sure you can export the entries into an array and then cycle through the array checking for duplicates. It's a simple algorithm.


--------------------
user posted image
Go to the top of the page
 
+Quote Post
F[uR]Y
post Nov 22 2006, 12:01 AM
Post #3


the Colombian
Group Icon

Group: +Upper Class
Posts: 2,417
Joined: 26-August 03
From: Bogotá, Colombia
Member No.: 24



QUOTE(ProXie @ Nov 20 2006, 09:38 PM)
Unless VB is an even more useless language than I thought, I'm sure you can export the entries into an array and then cycle through the array checking for duplicates.  It's a simple algorithm.
*


That doesn't answer his question though. And you don't need an array as the list items can be accessed, deleted and/or replaced in a similar way.


--------------------



Go to the top of the page
 
+Quote Post
ProXie
post Nov 22 2006, 03:00 AM
Post #4


<3 kB
Group Icon

Group: +Staff
Posts: 3,125
Joined: 28-December 03
Member No.: 211



Well then, cycle through the list -- create an array -- and read my first post.

Again, I don't program in VB but I have programmed in Java and C++. Code is code, the algorithms are the same.


--------------------
user posted image
Go to the top of the page
 
+Quote Post
KiLLeR
post Nov 22 2006, 04:26 AM
Post #5


LO!L!1
******

Group: Trusted
Posts: 1,969
Joined: 26-December 03
From: Las Vegas, Nevada
Member No.: 208



kay thanks. ill try writing my own code, but anyone wanna try writing one for me?
EDIT: I wrote my own using API, its pretty slow with big lists but thats ok. its what I expect with VB

This post has been edited by KiLLeR: Nov 23 2006, 07:03 AM


--------------------
QUOTE(Curdy)
xCurdy: IM PISSED
heyuwitheface: why?
xCurdy: cuz u r 1337

Go to the top of the page
 
+Quote Post

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 9th September 2010 - 02:29 AM