View Single Post
Old Jan 24th, 2008, 8:34 AM   #1
kewlgeye
Programmer
 
Join Date: Jan 2008
Posts: 53
Rep Power: 1 kewlgeye is on a distinguished road
Question What is wrong with this Output Statement

I am trying to output a number that is entered into a textbox called adminsundaycpaTextBox.Text. This number is supposed to be entered into a text file called Sundaypm.Text

I had absolutely no idea how to use visual basic 1 month ago, and now I am trying to learn. So here is my code. for the output statement.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click




' Open the file for output.
FileOpen(1, "Sundaypm.txt", OpenMode.Output)
' Close before reopening in another mode.


' Calculate Checkpoint A situation.


adminsundaycpaTextBox.Text = adminsundaycpaTextBox.Text

Write(1)
FileClose(1)
Me.Close()
End Sub


There was not much help online, because most was for older versions of visual basic. I learned this much using the index feature in visual basic. Thank you for your replys.
kewlgeye is offline   Reply With Quote