How do I write text data to a text box instead of a text file?
Posted on 2006-06-13
I have been outputting data to a txt file which works fine. But rather than a txt file I need to use an open window with a text box. Lines of text are continually entered one at a time.
I use the following to open the file and write the data
Public Function WriteLineToFile(ByVal filename As String, ByVal outputLine As String)
On Error GoTo fileError
Dim ff As Integer
ff = FreeFile
Open filename For Append As #ff
Print #ff, outputLine
MsgBox "Error writing to " & filename & vbCrLf & err.Description, vbExclamation, "Error " & err.Number
and the following under the click button
WriteLineToFile outputlog, "Logged on user:" & " " & name & " " & Date & " " & Time & " " & "FFT" & " " & "Image Name:" & " " & imagename
Here output log is a file, I want to change it to a text box. I have tried but keep getting errors
Experts can you help?