The information in this article applies to:
SYMPTOMSWhen a Read-Only property of a Text box is set in code, trying to run a project brings up the following error message: The environment shows a line of code that does not involve a property where an object or variant is necessary. CAUSEThe problem with the code has nothing to do with the return value of a function. Although the error message is misleading and incorrect, it is an error to try and set a Read-Only property. RESOLUTIONDo not attempt to set a Read-Only property in code (by definition). STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 5.0. MORE INFORMATIONSteps to Reproduce Problem
Additional query words: kbVBp400bug kbVBp500fix kbVBp kbdsd kbDSupport
Keywords : kbGrpVB |
Last Reviewed: February 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |