•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 427,327 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,034 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 7917 | Replies: 2 | Solved
![]() |
•
•
Join Date: Apr 2006
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
try the following, to count the number of letters in a particular line(0)
[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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Pascal and Delphi Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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


Linear Mode