Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vb.net - put dataset records into array

Posted on 2009-04-06
2
Medium Priority
?
550 Views
Last Modified: 2012-05-06
Table has these columns and multipe rows. Name is PK.

Name , Price , number1 , number2 , number 3

What would the vb.net code look like if I wanted to put "unique" values of number1, number2 and number3 into an array where price=2? and then sort this array from smallest to largest. Important thing is to have unique values.

Anyone?
0
Comment
Question by:ralphcarter2008
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 1500 total points
ID: 24084533
I think that you should take a look at the transpose-method in the article (transposes means that you put rows into columns ...)

http://www.eggheadcafe.com/tutorials/aspnet/5c5d810e-20e6-4d6c-a0a3-5277ba8de7e7/transpose-a-datatable-in.aspx
0
 
LVL 1

Author Closing Comment

by:ralphcarter2008
ID: 31567352
Thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question