BUG: You cannot use the Me keyword before the property name in a Visual Basic .NET structure (819354)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
SYMPTOMSIf you have a property defined in a Visual Basic .NET
structure and you try to assign a value to that property in the same structure
by qualifying the property name with the Me keyword, then you receive the following error:
Expression is a value and therefore cannot be the target
of an assignment. STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
WORKAROUNDTo work around this problem, do not qualify the property
name with Me when you assign a value to the property in the
structure.REFERENCESFor more information about structures, visit the following
MSDN Web site:
Modification Type: | Minor | Last Reviewed: | 2/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kbvs2002sp1sweep kbProperties kberrmsg kbConsole kbprb kbbug KB819354 kbAudDeveloper |
---|
|