Error message when you use square brackets as a delimited identified in Visual Basic 2005 or in Visual Basic .NET: "Identifier expected" (316137)
The information in this article applies to:
- Microsoft Visual Basic 2005
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
This article was previously published under Q316137 SYMPTOMS
If you use square brackets ([]) as a delimited identifier in Microsoft Visual Basic 2005 or in Microsoft Visual Basic .NET, the wavy blue underline appears under the code in the IDE. If you move the pointer over the code, you receive the following text:
RESOLUTION
To resolve this behavior, use parentheses and double quotation marks instead of square brackets.
STATUSThis behavior is by design.
Square brackets are now used to allow keywords to be used as identifiers.
Modification Type: | Minor | Last Reviewed: | 10/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kbprb KB316137 kbAudDeveloper |
---|
|