LocationTextFieldParser.ErrorLineNumber SyntaxDim fileParser As FileIO.TextFieldParser ' ...later... Dim result As Long = fileParser.ErrorLineNumber DescriptionThe ErrorLineNumber property returns the line number of the most recent data input line that could not be parsed by the TextFieldParser object. Failed parsing is indicated by the Microsoft.VisualBasic.FileIO.MalformedLineException exception being thrown during a read operation. The ErrorLine property returns the text of the errant line. Usage at a Glance
ExampleSee the example in the ErrorLine Property entry. Related Framework Entries
See AlsoEndOfData Property, ErrorLine Property, LineNumber Property, ReadFields Method, TextFieldParser Object |