Link to home
Start Free TrialLog in
Avatar of mathieu_cupryk
mathieu_cuprykFlag for Canada

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of pivar
pivar
Flag of Sweden 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