WIDTH Syntax Correction; WIDTH Parameter Is Required (60137)



The information in this article applies to:

  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
  • Microsoft QuickBASIC 4.5

This article was previously published under Q60137

SUMMARY

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.

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.
				

Modification Type:MinorLast Reviewed:1/8/2003
Keywords:KB60137