Correction for COMMAND$ Function Example in Manual (32789)






This article was previously published under Q32789

SUMMARY

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
				

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: KB32789