FYI String formatting issue in VB code

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,447
Location
Sydney, Australia
Programming Experience
10+
I just noticed an issue with the syntax highlighting for VB code. Check out these two lines of code:
VB.NET:
command.Parameters.Add("@ColumnName", OleDbType.VarChar, 50, "ColumnName")
command.Parameters.Add("ColumnName", OleDbType.VarChar, 50, "ColumnName")
Notice how the colouring of String literals is thrown off by the @ in the parameter name on the first line? Everything looks right in the second line, with the @ symbol removed.
 
Top Bottom