I am in a beginers visual basic class and need help with a program. it is a basic program and the trouble i have is that after i export the fields into notepad, i need the fields to be cleared. i have no idea how to get the fields cleared!!!! any possible information would be much appreciated. i have searched everywhere and can not find an answer. thanks in advance...
heres my program so far....
'Team 14
'This program accepts name and address information from the user.
Option Explicit
Private intFileNumber As Integer
Private Sub cmdEnter_Click()
Dim strName As String * 30
Dim strAddress As String * 35
Dim strCity As String * 25
Dim strState As String * 2
Dim strZip As String * 5
Dim strAccount As String * 6
Dim strBalance As String * 7
Dim curBalance As Currency
Dim lngBalance As Long
strName = txtName.Text
strAddress = txtAddress.Text
strCity = txtCity.Text
strState = txtState.Text
strZip = txtZip.Text
strAccount = txtAccount.Text
curBalance = CCur(txtBalance.Text)
lngBalance = curBalance * 100
strBalance = (7)
RSet strBalance = CStr(lngBalance)
strBalance = Replace(strBalance, " ", "0")
Print #intFileNumber, strName; strAddress; strCity; strState; strZip; strAccount; strBalance
End Sub
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim strFileName As String
intFileNumber = FreeFile
strFileName = App.Path & "\Something.txt"
Open strFileName For Output As #intFileNumber
End Sub
Private Sub Form_Unload(Cancel As Integer)
Close #intFileNumber
End Sub