Re: End of statement expected??

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Ron" <pts4560@xxxxxxxxx> wrote in message
news:1174528627.524045.295420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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 ).


.