Share via


Io.inRecordLength Method

Definition

Overloads

inRecordLength(Int32)
inRecordLength()

Gets or sets the number of characters to read for each record in a file.

inRecordLength(Int32)

public:
 virtual int inRecordLength(int _value);
public virtual int inRecordLength (int _value);
abstract member inRecordLength : int -> int
override this.inRecordLength : int -> int
Public Overridable Function inRecordLength (_value As Integer) As Integer

Parameters

_value
Int32

Returns

Applies to

inRecordLength()

Gets or sets the number of characters to read for each record in a file.

public:
 virtual int inRecordLength();
public virtual int inRecordLength ();
abstract member inRecordLength : unit -> int
override this.inRecordLength : unit -> int
Public Overridable Function inRecordLength () As Integer

Returns

The number of characters to read for each record in the file.

Remarks

For files that have a fixed-length format, use the inRecordLength property to guarantee that no more than the specified number of characters are read for each record. If the record format is overruled by a specified inRecordDelimiter property value , that is the inRecordDelimiter value is met before the fixed length is read, the record is accepted, and no additional data is read. To guarantee that a fixed number of characters are read, set the inRecordDelimiter property value to an empty string. When no inRecordDelimiter property value is found, the inRecordDelimiter property value is the maximum limit of characters to read. Set the inRecordDelimiter property value to zero to disable the record length check.

Applies to