Results 1 to 8 of 8

Thread: SELECT Some words in a field!Please Help

Threaded View

  1. #6
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: SELECT Some words in a field!Please Help

    How about:
    VB Code:
    1. Dim TheSentence As String = "The red rabbit ran round the ragged rock2"
    2.  
    3.         Dim sWords() As String = System.Text.RegularExpressions.Regex.Split(TheSentence, " ")
    4.         For i As int16 = 0 to 4
    5.             Label1.Text &= sWord(i)
    6.         Next
    Last edited by wild_bill; May 6th, 2005 at 04:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width