Microsoft KB Archive/32152

= Corrections for LOCATE Statement in QuickBasic 4.00 Manual =

Article ID: 32152

Article Last Modified on 11/21/2006



This article was previously published under Q32152



SUMMARY
Corrections 1 and 2 below apply to the LOCATE statement on page 255 of the following manuals:


 * &quot;Microsoft QuickBasic 4.0: Basic Language Reference&quot; for QuickBasic versions 4.00 and 4.00b.
 * &quot;Microsoft Basic Compiler 6.0: Basic Language Reference&quot; for versions 6.00 and 6.00b.

 These manuals say that any argument of the LOCATE statement can be omitted, but these manuals fail to mention the one exception, where if you specify &quot;stop&quot;, you must also specify &quot;start&quot;. For example, &quot;Illegal function call&quot; results if you specify the &quot;stop&quot; parameter while you omit &quot;start&quot;, as demonstrated in the example below. The following incorrect sentence on page 255 should be deleted:

&quot;When 'start' is less than 'stop', LOCATE produces a two-part cursor.&quot;

This sentence should be replaced with the following:

&quot;When 'stop' is less than 'start', LOCATE produces a two-part cursor (except on VGA-equipped systems, where a full-height cursor displays).&quot;





MORE INFORMATION
Note that Page 110 of the &quot;Programming in Basic: Selected Topics&quot; manual correctly states that a &quot;start&quot; larger than &quot;stop&quot; makes LOCATE produce a split cursor. Helpful examples also are shown.

The following is an example: CLS print &quot;display the split cursor on non-VGA systems&quot; locate ,,1,6,2 print &quot;the next line will result in an Illegal Function call error message&quot; locate ,,1,,4 print &quot;end of the test&quot;

Additional query words: QuickBas BasicCom

Keywords: KB32152

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.