KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q32789: Correction for COMMAND$ Function Example in Manual

Article: Q32789
Product(s): See article
Version(s): 4.00 4.00b 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | docerr B_BasicCom | mspl13_basic
Last Modified: 21-DEC-1989

The correction below applies to the example program for the COMMAND$
function on Page 114 of the following manuals:

1. "Microsoft QuickBASIC 4.0: BASIC Language Reference"

2. "Microsoft BASIC Compiler 6.0: BASIC Language Reference"

On Page 114, the SUB statement on line seven incorrectly reads as
follows:

   SUB Comline(NumArgs, Args$(1), MaxArgs) STATIC

This line should read as follows:

   SUB Comline(NumArgs, Args$(), MaxArgs) STATIC

In brief, replace Args$(1) in the first statement with Args$().

This information also applies to the example program on Page 61 of the
"Microsoft BASIC 7.0: Language Reference" manual which comes with
Microsoft BASIC PDS Version 7.00.

On Page 61, the SUB statement on line five incorrectly reads as
follows:

   SUB Comline(NumArgs,Args$,MaxArgs) STATIC

This line should read as follows:

   SUB Comline(NumArgs,Args$(),MaxArgs) STATIC

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.