#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    27
    Rep Power
    0

    Counting the characters in a string?


    Ok I know this probably sounds stupid to all of you gurus out there, but I really did search google and pscode.com before I posted. Anyway, I don't know the proper way to count each character in a string so if anyone could tell me that'd be great .
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2004
    Location
    England
    Posts
    952
    Rep Power
    14
    Code:
    var
      str: string;
      len: Integer;
    begin
      str := 'test';
      len := Length(str); // 4
    ...

IMN logo majestic logo threadwatch logo seochat tools logo