lothos12345
Well-known member
I am trying to input the text that is contained in a listbox into a text file. Below is a sample of my code. I know how to accomplish this using a textbox, unforunately I do not know how to accomplish this using a listbox, I keep getting a I/O error. Any help is greatly appreciated.
SaveFileDialog1.Filter = "Text Files (*.TXT)|*.TXT"
SaveFileDialog1.ShowDialog()
If SaveFileDialog.FileName <> "" then
FileOpen(1, SaveFileDialog1.FileName, OpenMode.Output)
PrintLine(1, ListBox1) <-------"Error is Here"
FileClose(1)
End If
SaveFileDialog1.Filter = "Text Files (*.TXT)|*.TXT"
SaveFileDialog1.ShowDialog()
If SaveFileDialog.FileName <> "" then
FileOpen(1, SaveFileDialog1.FileName, OpenMode.Output)
PrintLine(1, ListBox1) <-------"Error is Here"
FileClose(1)
End If