Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 23, 2012 04:34 PM by Vipindas
Participant
782 Points
390 Posts
Mar 23, 2012 03:06 PM|LINK
Hi,
I am trying to split a string here is what I have
Dim CNo As String() = CaseNo.Split(New Char() {"-"c}) Dim CNoNew As String() = CaseNo.Split("-")
Both give the same result but trying to understand which is best and why? Can you some one help me understand this.
Also need more help what this is doing here (New Char() {"-"c}) in the first line of code
Thanks,
L
Contributor
5720 Points
858 Posts
Mar 23, 2012 04:34 PM|LINK
Refer this
http://msdn.microsoft.com/en-us/library/6x627e5f(v=vs.80).aspx
http://www.dotnetperls.com/split-vbnet
lusty_learne...
Participant
782 Points
390 Posts
Split function need help
Mar 23, 2012 03:06 PM|LINK
Hi,
I am trying to split a string here is what I have
Dim CNo As String() = CaseNo.Split(New Char() {"-"c}) Dim CNoNew As String() = CaseNo.Split("-")Both give the same result but trying to understand which is best and why? Can you some one help me understand this.
Also need more help what this is doing here (New Char() {"-"c}) in the first line of code
Thanks,
L
Vipindas
Contributor
5720 Points
858 Posts
Re: Split function need help
Mar 23, 2012 04:34 PM|LINK
Refer this
http://msdn.microsoft.com/en-us/library/6x627e5f(v=vs.80).aspx
http://www.dotnetperls.com/split-vbnet