Advertisement
Advertisement
| 05.15.2008 at 04:49PM PDT, ID: 23407075 |
|
[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! |
||
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: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: |
Imports System.IO
Imports System.Text
Public Class Payroll
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
boxStartDate.Text = "05-04-08"
boxEndDate.Text = "05-05-08"
End Sub
Private Sub StartButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim objStreamReader As StreamReader
Dim strLine As String
Dim objStreamWriter As StreamWriter
Dim counter As Integer
'Pass the file path and the file name to the StreamReader constructor.
objStreamReader = New StreamReader("C:\Documents and Settings\Administrator\My Documents\Payroll.txt")
objStreamWriter = New StreamWriter("C:\Testfile.txt")
lblStatus.Text = "Starting..."
strLine = "Payroll"
Do While Not strLine Is Nothing
Do While counter <> 2
lblStatus.Text = "Starting Read"
counter = 0
'Read
strLine = objStreamReader.ReadLine
counter = counter + 1
Loop
objStreamWriter.WriteLine(strLine)
lblStatus.Text = "Writing Line"
'Read the next line.
strLine = objStreamReader.ReadLine
Loop
'Close the file.
objStreamReader.Close()
'Close the file.
objStreamWriter.Close()
End Sub
End Class
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.15.2008 at 04:54PM PDT, ID: 21578875 |
1: 2: 3: 4: 5: 6: 7: |
counter=0
Do While counter <> 2
lblStatus.Text = "Starting Read"
'Read
strLine = objStreamReader.ReadLine
counter = counter + 1
Loop
|
| 05.15.2008 at 04:56PM PDT, ID: 21578879 |
| 05.15.2008 at 05:09PM PDT, ID: 21578916 |
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: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: |
Imports System.IO
Imports System.Text
Public Class Payroll
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
boxStartDate.Text = "05-04-08"
boxEndDate.Text = "05-05-08"
End Sub
Private Sub StartButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim objStreamReader As StreamReader
Dim strLine As String
Dim objStreamWriter As StreamWriter
Dim counter As Integer
'Pass the file path and the file name to the StreamReader constructor.
objStreamReader = New StreamReader("C:\Documents and Settings\Administrator\My Documents\Payroll.txt")
objStreamWriter = New StreamWriter("C:\Testfile.txt")
lblStatus.Text = "Starting..."
strLine = "Payroll"
Try
Do
lblStatus.Text = "Starting Read"
strLine = objStreamReader.ReadLine ' Read first line
if not strLine is Nothing then
strLine = strLine & objStreamReader.ReadLine ' Add second line
lblStatus.Text = "Writing Line"
objStreamWriter.WriteLine(strLine) ' Write both lines out
end if
Loop Until strLine is nothing
catch E as exception
End Try
'Close the file.
objStreamReader.Close()
'Close the file.
objStreamWriter.Close()
End Sub
End Class
|
| 05.15.2008 at 05:21PM PDT, ID: 21578948 |
| 05.15.2008 at 05:22PM PDT, ID: 21578955 |
| 05.15.2008 at 05:50PM PDT, ID: 21579060 |
| 05.15.2008 at 05:59PM PDT, ID: 21579091 |