BUG: "Function call on Left-hand side of assignment..." ErrorLast reviewed: October 17, 1996Article ID: Q150230 |
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:
"Function call on left-hand side of assignment must return Variant or Object"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.
STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.
WORKAROUNDDo not attempt to set a Read-Only property in code (by definition).
MORE INFORMATION
Steps to Reproduce Problem
|
Additional reference words: 4.00 vb4win vb4all buglist4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |