Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

VB.net Expression expected

Hi. In the following VB.net class code I get the error "Expression expected"
on the line I marked with a note on the first "&". The error is expression expected

Public Class Class1


   Private pJoinTables As String

    Property JointTables() As String
        Get
            Return pJoinTables
        End Get
        Set(ByVal sValue As String)
            If (Not pJoinTables.Contains(sValue)) Then
                pJoinTables = pJoinTables & ',' & sValue 'Error on this line first &
            End If
        End Set
    End Property




End Class
ASKER CERTIFIED SOLUTION
Avatar of BuggyCoder
BuggyCoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks very much. Is it possible to explain briefly why that made a difference
& is concat operator and it expects string as input parameters and we represent constant strings with double quotes...