"Object.Method: " May Be Read as a Line Label

ID: Q90826


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


SYMPTOMS

If you put multiple statements on one line separated by a colon (:) and if the first statement invokes a method (using the form Object.Method, with no parameters), the statement may be interpreted as a line label instead of a method.


STATUS

Microsoft has confirmed this to be a bug in 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

For example, the following line of code will only print "hello"; it will not print the form as you might expect:


   Form1.PRINTFORM: LPRINT "hello" 
The statement Form1.PRINTFORM is seen as a line label, not as an executable statement.

The above function will work as expected if you put the statement on separate lines and remove the colon (:) after the first statement.

Additional query words: VBmsdos buglist1.00 1.00

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


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