Assignment in Immediate Window Causes Syntax Check In Editor

ID: Q94692


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0
  • Microsoft BASIC Professional Development System (PDS) for MS-DOS, version 7.1
  • Microsoft QuickBASIC for MS-DOS, version 4.5


SUMMARY

With a program loaded in the Edit window, if you perform any kind of assignment in the Immediate window, the focus shifts to the Edit window and a syntax check is performed. This can cause untimely syntax errors if your program was not ready to run.

This behavior is by design. The following demonstrates how this works:

  1. In the Edit window of VBDOS.EXE, QBX.EXE, or QB.EXE type the following:
    Loop


  2. In the Immediate window, type the following and press ENTER:
    x=1


At this point, focus shifts to the Edit window, and the following error message appears:
Loop without Do

Additional query words: VBmsdos 1.00 4.50 7.10

Keywords :
Version : MS-DOS:1.0,4.5; :7.1
Platform : MS-DOS
Issue type :


Last Reviewed: December 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.