End of statement expected??

  • Thread starter Thread starter Ron
  • Start date Start date
R

Ron

In this line:

iStartPosition = RichTextBox1.Text.IndexOfAny(New Char() {"A"c, "a"c,
"E"c, "e"c, "I"c, "i"c, "O"c, "o"c, "U"c, "u"c}),istartposition)

at the end of that line the ,istartposition) is underlined in blue
and says end of statement expected. I can not seem to fix this.

any ideas?

thanks
 
Ron said:
In this line:

iStartPosition = RichTextBox1.Text.IndexOfAny(New Char() {"A"c, "a"c,
"E"c, "e"c, "I"c, "i"c, "O"c, "o"c, "U"c, "u"c}),istartposition)

at the end of that line the ,istartposition) is underlined in blue
and says end of statement expected. I can not seem to fix this.

any ideas?

thanks
It looks like your opening and closing parentheses are not matched. I see
one more ) than the number of (.
You have Any(, Char(), }), and istartposition). One too many ).
 
Ron said:
iStartPosition = RichTextBox1.Text.IndexOfAny(New Char() {"A"c, "a"c,
"E"c, "e"c, "I"c, "i"c, "O"c, "o"c, "U"c, "u"c}),istartposition)

at the end of that line the ,istartposition) is underlined in blue
and says end of statement expected. I can not seem to fix this.

Remove the ')' in front of the ','.
 
Back
Top