WIDTH

WIDTH([#] filenumber, width)

Assigns an output line width (characters) for the open file.


filenumberThe number of the file (Integer).
widthThe number of characters (0 to 255) (Integer).

REMARKS
* The width indicates how many characters appear on a line before a new line is started.
* You can use the OPEN statement to open a file.
* For the Microsoft documentation refer to learn.microsoft.com

Open "MyFile" For Output As #1 
Width 1, 5

Dim iCount As Integer
For iCount = 1 to 10
   Print #1, Chr(48 + iCount)
Next iCount
Close #1

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top