Código Delphi [-] procedure TForm1.ContarLetras; Var I,Z: Integer; cTemp : String; begin Z := 0; cTemp := Memo1.Lines.Text; For I := 1 to Length(cTemp) do if ord(cTemp[i]) < 33 then inc(Z); StaticText1.Caption := IntToStr(Length(cTemp) - Z); end;
procedure TForm1.ContarLetras; Var I,Z: Integer; cTemp : String; begin Z := 0; cTemp := Memo1.Lines.Text; For I := 1 to Length(cTemp) do if ord(cTemp[i]) < 33 then inc(Z); StaticText1.Caption := IntToStr(Length(cTemp) - Z); end;