Corrections for LOCATE Statement in QuickBasic 4.00 Manual (32152)






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:

  • "Microsoft QuickBasic 4.0: Basic Language Reference" for QuickBasic versions 4.00 and 4.00b.
  • "Microsoft Basic Compiler 6.0: Basic Language Reference" for versions 6.00 and 6.00b.
  1. 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 "stop", you must also specify "start". For example, "Illegal function call" results if you specify the "stop" parameter while you omit "start", as demonstrated in the example below.
  2. The following incorrect sentence on page 255 should be deleted:

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

    This sentence should be replaced with the following:

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

MORE INFORMATION

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

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

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