Results 1 to 3 of 3

Thread: [RESOLVED] Get the string index from textbox to msflexgrid

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Resolved [RESOLVED] Get the string index from textbox to msflexgrid

    Me have a textbox with a sentence "please inform me before evening". The sentence length is not fixed, can change by user anytime.

    My point is how to put 1st, 3rd, 5th index to msflexgrid 1. Which is : please me evening. 2nd and 4th index to flexgrid 2. Which is : inform evening.

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Get the string index from textbox to msflexgrid

    "My point is how to put 1st, 3rd, 5th index" I think you meant word instead of "index" (which means something completely different). Use Split command to split the entire text into an array.

    Dim strWords() As String
    strWords = Split(Text1.Text, " ")

    Then each word will be a separate element of the array, strWords(0) will be "please", (1) "inform" etc..

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: [RESOLVED] Get the string index from textbox to msflexgrid

    Really make it. Thanks

Tags for this Thread

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