Advertisement
Advertisement
| 01.17.2008 at 12:44PM PST, ID: 23091521 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 01.17.2008 at 12:59PM PST, ID: 20685339 |
| 01.17.2008 at 01:08PM PST, ID: 20685430 |
| 01.17.2008 at 01:09PM PST, ID: 20685435 |
| 01.17.2008 at 01:11PM PST, ID: 20685460 |
| 01.17.2008 at 06:40PM PST, ID: 20687490 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: |
Dim reader As Microsoft.VisualBasic.FileIO.TextFieldParser
reader = My.Computer.FileSystem.OpenTextFieldParser _
("C:\Temp\test.csv")
reader.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited
reader.Delimiters = New String() {","}
Dim currentRow As String()
While Not reader.EndOfData
Try
currentRow = reader.ReadFields()
Dim currentField As String
For Each currentField In currentRow
MsgBox(currentField)
Next
Catch ex As Microsoft.VisualBasic.FileIO.MalformedLineException
MsgBox("Line " & ex.Message & _
"is not valid and will be skipped.")
End Try
End While
|
| 01.18.2008 at 12:53AM PST, ID: 20688823 |
| 01.18.2008 at 09:22AM PST, ID: 20692186 |
| 01.18.2008 at 01:41PM PST, ID: 20694451 |
| 01.21.2008 at 09:19AM PST, ID: 20707678 |
| 01.21.2008 at 09:47AM PST, ID: 20707908 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: |
Dim reader As Microsoft.VisualBasic.FileIO.TextFieldParser
reader = My.Computer.FileSystem.OpenTextFieldParser _
("AAA.csv")
reader.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited
reader.Delimiters = New String() {","}
Dim currentRow As String()
While Not reader.EndOfData
Try
currentRow = reader.ReadFields()
Dim currentField As String
For Each currentField In currentRow
ListBox1.Items.Add(currentField)
Next
Catch ex As Microsoft.VisualBasic.FileIO.MalformedLineException
ListBox1.Items.Add("Line " & ex.Message & _
"is not valid and will be skipped.")
End Try
End While
|
| 01.21.2008 at 10:03AM PST, ID: 20708012 |
| 01.21.2008 at 06:40PM PST, ID: 20711540 |
| 01.24.2008 at 11:01AM PST, ID: 20736110 |
| 01.29.2008 at 06:57PM PST, ID: 20774288 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: |
'First, define a Structure that needs To be sorted And Implements IComparable.
'In this Case, a Structure Is considered greater than another based On the ID
'member:
'==========Begin Code==========
Public Structure TestStructure
Implements IComparable
Public ID As Integer
Public name As String
Public Function CompareTo(ByVal obj As Object) As Integer _
Implements System.IComparable.CompareTo
Dim rhs As TestStructure = CType(obj, TestStructure)
If Me.ID > rhs.ID Then
'This object's ID is greater than the compared object's ID, so return 1
Return 1
ElseIf Me.ID = rhs.ID Then
'This object's ID is equal to the compared object's ID, so return 0
Return 0
Else
'This object's ID must be less than the compared object's ID, so return -1
Return -1
End If
End Function
End Structure
'==========End Code==========
|
| 01.31.2008 at 09:37AM PST, ID: 20788909 |
| 02.04.2008 at 05:19PM PST, ID: 20819877 |