| | |
Character/letter count
Thread Solved |
•
•
Join Date: Apr 2006
Posts: 5
Reputation:
Solved Threads: 0
try the following, to count the number of letters in a particular line(0)
Pascal and Delphi Syntax (Toggle Plain Text)
[procedure TForm1.Button1Click(Sender: TObject); var a:Integer; begin a:=length(Memo1.Lines[0]); label1.Caption:=IntToStr(a); end;] or to count the number of total letters (in fact characters) [procedure TForm1.Button1Click(Sender: TObject); var a,b,c:Integer; begin a:=length(Memo1.Lines[0]); label1.Caption:= IntToStr(length(Memo1.Lines.Text)) ; end;]
Last edited by cscgal; May 9th, 2006 at 11:11 pm.
![]() |
Similar Threads
- Word and Letter Count (C)
- hellp please (Java)
- Finding the Most Common Character in a String (Java)
- Homework Help/Feedback (C++)
- "String class" (Java)
- What is wrong with my program? (C++)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Sending keystrokes to MS Word
- Next Thread: change system date
| Thread Tools | Search this Thread |





