var
MyString : string;
LengthOfMyString : integer;
begin
MyString := 'My String';
LengthOfMyString := Length(MyString);
ShowMessage(IntToStr(LengthOfMyString));
end;
It should show 9.
you can find more details in Delphi help files.
: Can anyone give me an example
: I wanna check the character length!
: