Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/92381

From BetaArchive Wiki
Knowledge Base


Watch Variable on Screen.Height Can Give Wrong Value

PSS ID Number: 92381

Article Last Modified on 1/8/2003



The information in this article applies to:

  • Microsoft Visual Basic for MS-DOS 1.0



This article was previously published under Q92381

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: KB92381
Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3