Assigns an output line width to a file opened using the FileOpen function.
Required. Any valid file number.
Required. Numeric expression in the range 0–255, inclusive, which indicates how many characters appear on a line before a new line is started. If RecordWidth equals 0, there is no limit to the length of a line. The default value for RecordWidth is 0.
|Exception type||Error number||Condition|
FileNumber does not exist.
File mode is invalid.
See the "Error number" column if you are upgrading Visual Basic 6.0 applications that use unstructured error handling. (You can compare the error number against the.) However, when possible, you should consider replacing such error control with .
This example uses the FileWidth function to set the output line width for a file.
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)