TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: GEORGE DE BRUIN
date: 1997-05-16 06:37:00
subject: RE: word counter

From: George De Bruin 
On Wednesday, May 07, 1997 12:58 PM, Danny Keogh 
[SMTP:632-158!Danny.Keogh@sawasdi.apana.org.au] wrote:
> I have seen several messages on this echo recently envolving
> people asking for word counters.  I have written one which I will
> consider distributing if I get enough replies to this message.
If you're trying to do something like this is TSE Pro (either 2.5 or 2.6), it 
is a very short macro:
proc main()
    integer count = 1
    PushPosition()
    PushBlock()
    BegFile() GotoPos(PosFirstNonWhite())
    UnMarkBlock()
    While WordRight()
        if CurrChar()  _AT_EOL_
            count = count + 1
        endif
    endwhile
    PopBlock()
    PopPosition()
    warn("Total Words: ", count)
end
                           George J. De Bruin
                       SemWare Technical Support
 
------------------------------------------------------------------------------
 SemWare Corporation         Phone: (770) 641-9002  FAX: (770) 640-6213
 WEB: http://www.semware.com  FTP: ftp.semware.com  
george.de.bruin@semware.com
 
------------------------------------------------------------------------------
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.