Find string function

Discussion in 'Code Snippets and Tutorials' started by the_skip, Apr 7, 2007.

  1. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    Is it possible to see if there is a certain string in another string
     
  2. zav75

    zav75 Level I

    Joined:
    Feb 28, 2007
    Messages:
    76
    Likes Received:
    6
    Location:
    Canada, Province of Québec

    Code (Text):
    1. program Example;
    2. var
    3. aString : string;
    4. begin
    5. aString:= 'Dont do drugs  ';
    6. Writeln(Between(' ','  ', aString));
    7. end.
    try it ^^
     
  3. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    No need scar 3 has what I want
     
  4. zav75

    zav75 Level I

    Joined:
    Feb 28, 2007
    Messages:
    76
    Likes Received:
    6
    Location:
    Canada, Province of Québec
    omg scar 3! Going dl it ^^.