Convert Sentence/String to an array

ryoka012

Active member
Joined
Oct 13, 2011
Messages
32
Programming Experience
Beginner
Hi experts,

I have been checking on google on how can i implement this.
Every time i check there is only a word that can be converted to an array.

How can i convert this sentence="the quick brown fox jump over the lazy dog" to an array


Example:

VB.NET:
below is the idea
'the string will be based on my database.
dim sentence  as string ="the quick brown fox jump over the lazy dog"
Dim searchwords() As String = sentence 

And how will i convert to this using above string
Dim searchwords() As String ={"the", "quick", "brown", "fox","jump", "the", "lazy", "dog"}


Thanks a lot.
 
Back
Top