Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 7th, 2007, 01:46 PM
Registered User
 
Join Date: Feb 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Condesing the Rows in VB.NET

Hello everyone,

I'm a VB.Net beginner and I have an assignment that I'm stuck on. Would really appreciate your advice as soon as possible.

I have variables (start1, end1, num1, start2, end2, num2, start3, end3, num3 etc.) that eventually should populate the table. The rows may have the repeat values in the Col3. If I populate the table without the condensing the rows the table will look something like this:

0 10,000 0.1
10,000 20,000 0.25
20,000 30,000 0.25
30,000 40,000 0.4
40.000 50.000 0.6
50,000 60,000 0.6
60,000 70,000 0.6


I need to find the rows where the Col3 has the repeat values, condense these rows and also update the value in the Col2 with the largest number. It should look like this:

0 10,000 0.1
10,000 30,000 0.25
30,000 40,000 0.4
40.000 70,000 0.6

I wouldn't know up front if there are rows to condense for a particular case or not and if there are then how many of them and where there are located. My final distinct table might have from 1 to approximately 12 rows depending on how many dups there are.

What would be the best technique to use here to look through my variables and identify the rows to condense?

Thank you very much!

Gina


 
Old September 7th, 2007, 01:50 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

X-Post.

http://p2p.wrox.com/topic.asp?TOPIC_ID=64775

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Condensing the Rows in VB.NET Ginab VB How-To 2 September 7th, 2007 02:32 PM
plz tell me ,how to edit rows in vb.n preetham.sarojavenkatesh General .NET 2 June 7th, 2007 11:00 AM
Copying Multiple Rows in MS Excel 2K using VB .Net Azhar Akbari Excel VBA 2 January 27th, 2005 10:04 AM
VB.Net question on Windows VB.Net datagrids dmsousa VS.NET 2002/2003 1 January 19th, 2005 02:45 PM
how to edit/ update records/ rows of csv file vb thePervertedMonk VB How-To 1 December 10th, 2004 02:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.