1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Parse String and Get a Token

Discussion in 'Delphi Programming' started by AdminDF, Feb 14, 2014.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    Code:
    function Parse(Char, S: string; Count: Integer): string;
    var
    I: Integer;
    T: string;
    begin
    if S[Length(S)] <> Char then
    S := S + Char;
    for I := 1 to Count do
    begin
    T := Copy(S, 0, Pos(Char, S) - 1);
    S := Copy(S, Pos(Char, S) + 1, Length(S));
    end;
    Result := T;
    end;
    
    procedure TForm1.Button1Click(Sender: TObject);
    begin
    ShowMessage(Parse('|', 'A|B|C|D|E|F', 2)); = B
    end;
     
  2. drakeblood2
    Online

    drakeblood2 Guest

    thank a lot!

     

     
     
  3. ASAPLTDA
    Offline

    ASAPLTDA DF Junior

    GRACIAS
     
     
  4. laolao876
    Offline

    laolao876 DF Member

    not bad
     
  5. del1-xe6
    Offline

    del1-xe6 DF Member

  6. mario.joker
    Offline

    mario.joker DF Junior

Share This Page