| | |
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 10: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
Views: 11018 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Pascal and Delphi
animation api app array button compile console data database dbisam delete delphi delphihelpimageforloop documentcomplete2 edit environment error errors events file form function gdi gis lasrautoinc media navigatecomplete2 network object open opengl pascal passing path player procedure search set sql table twebbrowser username variable win7 windows





