WIDTH Statement Incorrectly Lists All Parameters as Optional (61658)






This article was previously published under Q61658

SUMMARY

In the "Microsoft QuickBASIC for Apple Macintosh: Language Reference" manual, the syntax description of the WIDTH statement does not follow the notational conventions used with the documentation.

The WIDTH statement syntax description on Page 353 of the "Microsoft QuickBASIC for Apple Macintosh: Language Reference") incorrectly shows that both "size" and ", printzone" are optional:

WIDTH [[size]] [[,printzone]]

When all parameters are optional, the statement should be legal with no parameters. In this case, "WIDTH" alone should be a legal statement according to the above syntax description, but that statement causes the following error:
Missing operand
The correct syntax description for the WIDTH statement is as follows:

WIDTH {size | ,printzone | size,printzone}

This information applies to Microsoft QuickBASIC version 1.00 for the Apple Macintosh.

MORE INFORMATION

The following section of the "Typographical Conventions" description from Page 7 of "Microsoft QuickBASIC for Apple Macintosh: User's Guide" defines the notations used in the documentation:
   [[optional item]]    Items inside double square brackets are
                        optional.
   {choice1 | choice2}  Braces and a vertical bar indicate a choice
                        between two or more items. You must choose one
                        of these items unless all of the items are
                        also enclosed in double square brackets.
				

Modification Type: Minor Last Reviewed: 1/9/2003
Keywords: KB61658