Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

FileWidth Procedure

Class

Microsoft.VisualBasic.FileSystem

Syntax

FileWidth(fileNumber, recordWidth)

fileNumber (required; Integer)

Any valid file number of a file opened with FileOpen.

recordWidth (required; Integer)

A number between 0 and 255 that indicates the output line width. Use 0 for unlimited length lines.

Description

The FileWidth procedure specifies a virtual file width when working with files opened with the FileOpen function. This line width can range from 1 to 255 characters. A setting of zero removes any line width limitations.

Version Differences

  • The FileWidth procedure is new to VB under .NET.

  • In Visual Basic 2005, the My.Computer.FileSystem object provides more robust access to file management features.

See Also

FileOpen Procedure

Категории