Results 1 to 6 of 6

Thread: Code Sample for a Find/Replace in Textbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    California
    Posts
    79

    Question Code Sample for a Find/Replace in Textbox

    Does Anyone Know How to do a Find and Replace in a Text box Using Visual Basic 6
    Robert

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    If you have more than one text box use an array and the replace function.

  3. #3
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. Private Sub Command1_Click()
    2.     Text1.Text = Replace(Text1.Text, "t", "@")
    3. End Sub
    -= a peet post =-

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    California
    Posts
    79

    Thumbs up

    Thanks for the Help that worked.
    Robert

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    California
    Posts
    79

    Thumbs up Resolved

    Thanks for the Help that worked.
    Robert

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    hi there crmfghtr, in order to make all se resolved, you have to edit the first post and add resolved to the subject
    -= a peet post =-

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