Simple String function
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Simple String function

  1. #1
    Join Date
    Dec 2009
    Posts
    3

    Simple String function

    Hi,

    I am looking for a way of finding a String within a String, for example

    String first = "THISISTHETEXTIWANTTOFIND";
    String second = "sdfdsfTHISISTHETEXTIWANTTOFINDsdfdsfsdf";

    Is there a String function that will allow me to do this, I tried using the pos function but it didnt seem to work unless the text that I wanted it to find within another String was at the beginning.

    Does anybody know the best way to do this.

    I am using Builder 2007 ide if this helps. Im not sure if the String is a builder specific String rather than the standered string..

    Thanks in advance

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,254

    Re: Simple String function

    What is Builder 2007? Who makes that and what language is it?

  3. #3
    Join Date
    Dec 2009
    Posts
    3

    Re: Simple String function

    Builder 2007 is an ide written in delphi by Borland.

    Joe

  4. #4
    Join Date
    Dec 2009
    Posts
    3

    Re: Simple String function

    Hi,

    Sorry to waste your time but i think that i have figured it out now.

    Cheers

    Joe

  5. #5
    Join Date
    Apr 2008
    Posts
    726

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center