could also be written cleaner in a few ways:
Main Topics
Browse All TopicsFriends,
I need help with Linq, to get multiple values out of a Hashtable for the Top 5 TotalRaceRankFactor_Entran
You can see below how I declared the values in the class, attached to that hashtable...
I would think the Link would be something like:
For Each Entrant (From Entrants In PointsInfo_HT Order By Entrants.TotalRaceRankFact
Dim PointsInfo as new clsCompletePointsInfo
Dim CarNumber as String = PointsInfo.CarNumber
...
Next
Does this make sense?
If I were to use SQL, the syntax would be:
Select Top 5 TotalRaceRankFactor_entran
CarNumber,
FName,
LastName,
Team,
TotalEntrantPoints
From PointsInfo
Order By TotalRaceRankFactor_entran
Thanks in Advance!
Best Regards,
Eric
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Okay, I think I didn't explain something correctly, but philipjonathan is the closest so far.
THe ordery by Entrants.TotalRaceRankFact
Error 1 'TotalRaceRankFactor_Entra
Also, I am using VB.NET
Thanks! Eric
Points_HT:
Public Class ICPC
Dim PointsInfo_HT As New Dictionary(Of String, clsCompletePointsInfo)
...
Public Class clsCompletePointsInfo
Public DriverID As String
Public EntrantID As String
'Rank = 0
Public TotalEntrantPoints As Integer
Public TotalDriverPoints As Integer
Public CarNumber As String
Public FName As String
Public LName As String
Public Team As String
Public TotalRaceRankFactor_Entran
'Comment = ""
End Class
Dim PointsInfo As New clsCompletePointsInfo
Dim top5Entrants = From Entrants In PointsInfo_HT Select Entrants Order By PointsInfo.TotalRaceRankFa
For Each Entrant In top5Entrants
Dim CarNumber As String = PointsInfo.CarNumber
Next
THis seems to compile....Not sure if it will work, though... Haven't tried it yet.
FYI, I had to make a couple slight modifications, but your solution got me there...
Dim top5Entrants = From Entrants In PointsInfo_HT Select Entrants Order By Entrants.Value.TotalRaceRa
Dim li As ListViewItem
For Each Entrant In top5Entrants
Dim CarNumber As String = Entrant.Value.CarNumber
...
Business Accounts
Answer for Membership
by: naspinskiPosted on 2009-09-16 at 22:52:20ID: 25353147
Select allOpen in new window