Microsoft KB Archive/90826

= &quot;Object.Method: &quot; May Be Read as a Line Label =

PSS ID Number: 90826

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 Q90826



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 &quot;hello&quot;; it will not print the form as you might expect: Form1.PRINTFORM: LPRINT &quot;hello&quot; 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: KB90826

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.