string search

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • powerranger

    string search

    Is there a way to search a string within a string. For example, I
    want to search for "world" in "Hello world" knowing that "world" can
    be anywhere in the string. How do I do that? Thanks.
  • Steve C. Orr, MCSD

    #2
    Re: string search

    Use the "IndexOf" method of the string object.
    Here's more info:


    --
    I hope this helps,
    Steve C. Orr, MCSD



    "powerrange r" <tangolp@yahoo. com> wrote in message
    news:13bc95e0.0 306301259.36cb8 539@posting.goo gle.com...[color=blue]
    > Is there a way to search a string within a string. For example, I
    > want to search for "world" in "Hello world" knowing that "world" can
    > be anywhere in the string. How do I do that? Thanks.[/color]


    Comment

    Working...