Microsoft KB Archive/94692

= Assignment in Immediate Window Causes Syntax Check In Editor =

Article ID: 94692

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft Visual Basic for MS-DOS
 * Microsoft BASIC Professional Development System 7.1
 * Microsoft QuickBasic 4.5 for MS-DOS

-



This article was previously published under Q94692



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:

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

Loop

 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: KB94692

-

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

© Microsoft Corporation. All rights reserved.