Computing.Net > Forums > Programming > Vb 6

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Vb 6

Reply to Message Icon

Name: oldglory
Date: March 12, 2004 at 11:36:05 Pacific
OS: XP
CPU/Ram: 2GHz
Comment:

How do I get VB to ignore duplicate entries. I have a file that has 3 lists with product list number under each list. I don't want VB to print out the same number multiple times. If the the list is "0" I want to ignore it. If the list repeats, I want to only print it once.


List-1, List-2, List-3
3, 0, 0
3, 0, 0
3, 1, 0
3, 0, 0

For example, above should be displayed as:

ProdList
3
1



Sponsored Link
Ads by Google

Response Number 1
Name: Hoang Tran
Date: March 12, 2004 at 12:09:26 Pacific
Reply:

Turn on the list sorted feature, then keep a variable for previously printed value, when a new value comes in, compare to previous value. If it's the same don't print, else print etc..


0

Response Number 2
Name: oldglory
Date: March 12, 2004 at 16:55:05 Pacific
Reply:

I'm sorry, I'm not sure what you are referring to. I'm new to VB and need a bit more specifics to help me along.

Thanks.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Vb 6

Vb 6 Compiler Needed www.computing.net/answers/programming/vb-6-compiler-needed/1223.html

I need help about vb 6.0 www.computing.net/answers/programming/i-need-help-about-vb-60/5404.html

VB 6 Operator www.computing.net/answers/programming/vb-6-operator/521.html