LocationTextFieldParser.HasFieldsEnclosedInQuotes SyntaxDim fileParser As FileIO.TextFieldParser ' ...later... Dim result As Boolean = fileParser.HasFieldsEnclosedInQuotes or: Dim fileParser As FileIO.TextFieldParser ' ...later... fileParser.HasFieldsEnclosedInQuotes = hasQuotes
DescriptionThe HasFieldsEnclosedInQuotes property gets or sets a value that indicates whether the delimited fields parsed by a TextFieldParser object should accept quotation marks as field boundaries (true) or not (False). If you do not specifically set this field, it defaults to true. If this property is set to true and a field is enclosed by quotes, any active delimiters (such as commas) found between the quotation marks are considered part of the field and are not used to delimit portions of that field. For instance, if comma is used as a delimiter, in the input line: field1,field2,"field3,field4",field5 there are only four fields represented, since "field3,field4" is a single field containing a comma. Usage at a Glance
Related Framework Entries
See AlsoDelimiters Property, ReadFields Method, SetDelimiters Method, TextFieldParser Object, TextFieldType Property, TrimWhiteSpace Property |