Hello to all,
When I try to run an application that I am working on I get a sytax error with the line of code being referenced.
Error code: syntax error: missing operand after '=' operator.
Line of code referenced: Me.ChannelBindingSource.Filter = "FolderID = " & FolderComboBox.SelectedValue
I have looked at this until I am ready to pull my hair out. Could someone please point me in a direction that I haven't been able to since I must have my blinders on.
Thanks

syntax error
gtimofte
Hi,
Just a guess but try with the following:
Me.CahnnelBindingSource.Filter = string.Format("FolderID = '{0}'", FolderComboBox.SelectedValue)
Greetz,
Geert
Geert Verhoeven
Consultant @ Ausy Belgium
My Personal Blog
mpco
Thank you for the tip. But As I mentioned in a previous post, I have checked the syntax against what Bob Tabor had done in the lesson and everything is the same. I even copied and pasted the line from the sample that he provides with the package. When I run the application, I get the above error and the line is highlighted in green. When I place my cursor on the arrow to the right, it tells me that this line of code is the next one to be executed and that this line is being called into another process. When I step through the code, I do not see where this is being called from. Just to let you know, I am still a "green" newbie at this.
Greg
Aleniko29139
Hi,
Was. >>
Me.CahnnelBindingSource.Filter = "FolderID = " &FolderComboBox.SelectedValue
Try.>>
Me.CahnnelBindingSource.Filter = "FolderID = " & FolderComboBox.SelectedValue
'You also have the "h" and the "a" reversed. Should it not be.>>
Me.ChannelBindingSource.Filter = "FolderID = " & FolderComboBox.SelectedValue
Regards,
S_DS
steveylevi
Yes in the data base there is a space between the & and FolderComboBox.SelectedValue and also the channel is spelled correctly. I mis-typed it here. I have retyped the line several times with no success. I will try the suggestion from above. This whole episode came from one of the lessons that Bob Tabor created to do an RSS reader project. I even copied the line of code from the lesson code that was supplied. I ran the sample project and it runs with no problems. When placing the cursor over the arrow on this line, it says something about this event being called by another process and that this is the next line of code to be executed. But stepping into the code with a break on this line, I just can't see where it comes from. Thanks for the suggestions.
Greg
Ryan Tessier
Make sure that the string literal is enclosed in double quoutes (") and not two single quotes (').
Best regards,
Johan Stenberg