Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.66 KB

all-field-widths-except-the-last-element-must-be-greater-than-zero.md

File metadata and controls

48 lines (39 loc) · 1.66 KB
title ms.date ms.prod ms.technology ms.topic f1_keywords ms.assetid caps.latest.revision author ms.author translation.priority.ht translation.priority.mt
All field widths, except the last element, must be greater than zero
2015-07-20
.net
devlang-visual-basic
article
vbrTextFieldParser_FieldWidthsMustPositive
41d8c661-a749-4c89-be56-905c6e7c3c9d
7
dotnet-bot
dotnetcontent
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
cs-cz
pl-pl
pt-br
tr-tr

All field widths, except the last element, must be greater than zero

All field widths, except the last element, must be greater than zero. A field width less than or equal to zero in the last element indicates the last field is of variable length.

The operation has failed because a field width other than the last element is set to zero or less. A field width less than or equal to zero can be used as the last element to indicate that the last field is of variable length, but it cannot be used as any other element.

To correct this error

  • Set the field width to the correct length.

See Also

TextFieldParser.SetFieldWidths Method
TextFieldParser.FieldWidths Property
How to: Read From Fixed-width Text Files
TextFieldParser Object