Hi there friends
i am having problem in spliting a string by the built in Split method in vb.net plz guide me and tell me the method how to use this function
Thankyou plz tell me as fast as u can
bye
Hi there friends
i am having problem in spliting a string by the built in Split method in vb.net plz guide me and tell me the method how to use this function
Thankyou plz tell me as fast as u can
bye
PLz tell me how to use Split function method in VB.net
BryanM-NZ
Split returns an array of strings - so you need to change the line to:
dim splitstring() as String = sourceString.Split('' ")
This declares splitstring as an array of strings.
The following:
Would result in:
Hope this helps :)
Stevetrooba
Thanks for help but on line
dim splitstring as String = sourceString.Split('' ") // There is an error which says that
" Value of type 1-dimensional array of string cannot be converted to String"
Plz tell me the problem
Thanks
Bye
Navin Tripathi
Here is a very simple example:
Dim sourceString As String = "This is a string I wish to split into words" Dim arrayOfStrings() As String = sourceString.Split(" ")Alternatively look in the help: