KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q60137: WIDTH Syntax Correction; WIDTH Parameter Is Required

Article: Q60137
Product(s): See article
Version(s): 7.00 7.10
Operating System(s): MS-DOS
Keyword(s): ENDUSER | SR# S900315-50 docerr B_QuickBas | mspl13_basic
Last Modified: 15-JAN-1991

The following WIDTH statement syntax (taken from the documentation
listed further below) incorrectly indicates that both "screenwidth%"
and  ", screenheight%" are optional:

   WIDTH [screenwidth%][, screenheight%]

According to the above syntax description, "WIDTH" 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
"Microsoft QuickBASIC 4.0: Language Reference" for 4.00 and 4.00b; on
page 409 of the "Microsoft BASIC 7.0: Language Reference" 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.

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.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.