The information in this article applies to:
SYMPTOMSIf 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. STATUSMicrosoft 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 INFORMATIONFor example, the following line of code will only print "hello"; it will not print the form as you might expect:
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 : |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |