Results 1 to 3 of 3

Thread: searching through a text box for a word

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    Hi,

    I would like to search through a text box called txtText and look for the word "system". If this word is found I want it to be changed to "System" (notice that the latter's first letter is UCase). If it is found I want it to search on after making the changes and see is it is any where else. Just like the replace feature on Visual Basic.

    ------------------
    rino_2
    Visual Basic, HTML

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    If you have VB6 then you can use Replace function:

    Text1.Text = Replace(Text1.Text, "system", "System")

    ------------------

    Serge

    Senior Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819

    [This message has been edited by Serge (edited 02-08-2000).]

  3. #3
    Guest

    Post

    Also use :

    Opption Compare Binary


    ------------------
    Boothman
    There is a war out there, and it is about who controls the information, it's all about the information.


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