Results 1 to 4 of 4

Thread: You Have The Power......

  1. #1

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Question

    .....to make me extremely happy if you can answer this question. I'm making a simple text editor, and I'd like to know how to implement find and replace features as seen in most applications. I've already found a tutorial on VB-Square, but I'd like to know how to make my program highlight each individual instance of the text (when found), replace this text when prompted, and move onto the next instance when the "Next" button is clicked. Even if you could just point me in the direction of some useful functions to look at, I'd be ecstatic!

    TIA!

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    simple answer, use INSTR and REPLACE functions
    find it wit instr
    usin selstart, sellenght of the text box property to highlight
    and use replace function if they want to replace

    you will need to use LIKE function/method as well
    so that if your searching for inter, it would find inter in the word Internet

    ect..


  3. #3

  4. #4

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    Thanks, kovan!

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