G
Guest
I have a predefined array that looks something like
Private RemoveWords() As String = {"a", "b", "c"
and I want to take an input string, and remove the words from the string that are in the "RemoveWords" array. So basically if my string was "Walk a dog" it would return "Walk dog"
I tried doing something like
Dim tempArray() As String = inputString.Split(" "
For Each tempArray In RemoveWord
' Not sure what goes in here ye
Nex
but for the RemoveWords I get an error that says "value of type 'String' cannot be converted to '1-dimensional array of String'.
I haven't worked with arrays hardly at all, so I'm not really sure how to do this. Can anybody point me in the right direction
Thanks
Jeremy
Private RemoveWords() As String = {"a", "b", "c"
and I want to take an input string, and remove the words from the string that are in the "RemoveWords" array. So basically if my string was "Walk a dog" it would return "Walk dog"
I tried doing something like
Dim tempArray() As String = inputString.Split(" "
For Each tempArray In RemoveWord
' Not sure what goes in here ye
Nex
but for the RemoveWords I get an error that says "value of type 'String' cannot be converted to '1-dimensional array of String'.
I haven't worked with arrays hardly at all, so I'm not really sure how to do this. Can anybody point me in the right direction
Thanks
Jeremy