Microsoft KB Archive/60137

= WIDTH Syntax Correction; WIDTH Parameter Is Required =

Article ID: 60137

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft BASIC Professional Development System 7.0
 * Microsoft BASIC Professional Development System 7.1
 * Microsoft QuickBasic 4.5 for MS-DOS

-



This article was previously published under Q60137



SUMMARY
The following WIDTH statement syntax (taken from the documentation listed further below) incorrectly indicates that both &quot;screenwidth%&quot; and &quot;, screenheight%&quot; are optional:   WIDTH [screenwidth%][, screenheight%] According to the above syntax description, &quot;WIDTH&quot; with no parameters is a legal statement; however, WIDTH with no arguments correctly causes the following error in the QBX.EXE environment:

Expected: # or LPRINT or expression or ,

The syntax description for the WIDTH statement should be corrected to read as follows:   WIDTH {screenwidth% |, screenheight% | screenwidth%, screenheight%} Note that screenwidth% is measured in columns, and screenheight% is measured in lines.

This correction applies to the WIDTH statement on page 449 of the &quot;Microsoft QuickBasic 4.0: Language Reference&quot; for 4.00 and 4.00b; on page 409 of the &quot;Microsoft Basic 7.0: Language Reference&quot; manual for Basic PDS 7.00 and 7.10; to the WIDTH statement in the QBX.EXE Microsoft Advisor online Help system from Microsoft Basic Professional Development System (PDS) version 7.00; and in the QB.EXE QB Advisor online Help system from Microsoft QuickBasic version 4.50.

This documentation error has been corrected in the QBX.EXE online Help in Basic PDS 7.10.



MORE INFORMATION
The following section of the QBX.EXE online Help system defines the notation used for syntax description (in all of the above products): [optional item]     Items inside square brackets are optional; you do not have to use them in the statement.

{choice1 | choice2} Braces and a vertical bar indicate a choice between two or more items. You must use one of                    the items in the statement unless the braces are enclosed in square brackets.

Additional query words: QuickBas BasicCom

Keywords: KB60137

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.