problem converting from c# to vb.net

When I try to convert
string[] strs = processstr.Split(new char[] { ' ' }, true);
it gives me this
Dim strs As String() = processstr.Split(New Char() {" "c}, True)
with an error/

Error      1      Overload resolution failed because no accessible 'Split' can be called without a narrowing conversion:
    'Public Function Split(separator() As Char, options As System.StringSplitOptions) As String()': Argument matching parameter 'options' narrows from 'Boolean' to 'System.StringSplitOptions'.
    'Public Function Split(separator() As Char, count As Integer) As String()': Argument matching parameter 'count' narrows from 'Boolean' to 'Integer'.      C:\svn\scraper_cingular\code\Module1.vb      95      36      ScrapeFilesFromCingular
mathieu_cuprykAsked:
Who is Participating?
 
pivarCommented:
Hi,

There is no split method that takes a boolean as second param.  Remove ", True". Or what is it you want to do?


/peter
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.