Watch Variable on Screen.Height Can Give Wrong Value

ID: Q92381


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0


SYMPTOMS

If you are running an application in 43-line mode, press CTRL+BREAK to exit an application, and set a watch variable to Screen.Height, it will return the value based on the current mode of the editing environment. Thus, if you are running VBDOS.EXE in 25-line mode (default), you will see the value of Screen.Height reported as 25.


STATUS

Microsoft has confirmed this to be a bug in the Standard and Professional Editions of Microsoft Visual Basic for MS-DOS, version 1.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

If you continue to run your 43-line mode application and press CTRL+BREAK again, you will see the value of Screen.Height reported as 43.

The problem is that at the time you first set the screen mode resolution, Visual Basic examined the screen mode resolution of the application currently running (VBDOS.EXE), and your application was not yet recognized. When you run your application again, the proper value is detected, and the watch variable is updated accordingly.

Additional query words: VBmsdos buglist1.00 1.00

Keywords :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


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