How "length" function use? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How "length" function use?

anymananyman Posts: 19Member
Can anyone give me an example
I wanna check the character length!

Comments

  • _yilmaz_yilmaz Posts: 150Member
    [code]
    var
    MyString : string;
    LengthOfMyString : integer;
    begin
    MyString := 'My String';
    LengthOfMyString := Length(MyString);
    ShowMessage(IntToStr(LengthOfMyString));
    end;
    [/code]

    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!
    :

Sign In or Register to comment.