Reply to topic  [ 2 posts ] 
Count the number of replaced expressions 
Author Message

Joined: 2003-02-07 07:48:35
Posts: 17
Hello

I'm using Nisus Writer 5.xxx and the macro language.

I've a small question:

How can I get the number of replaced expressions replaced with the 'search and replace' function (s&r). The s&r function displays the number of found and replaced expressions in a message box. How can I get this number. I'm using a macro and I need this value to control the macro flow.
Or is there an other possibility to count the number of the same expression in one paragraph.

Thanks for your help.


2003-02-07 08:25:27
Profile
Official Nisus Person
User avatar

Joined: 2003-02-11 10:49:05
Posts: 428
Location: Solana Beach, CA
There is a command in Nisus Programming Dialect called "NumFound"

For example, the three line macro:


Find All "^.+" "g"
Clipboard="There are "=NumFound+" Paragraphs in this document"
:1 '\CC'


will display the number found on the Clipboard.

Try that.

_________________
Write On!
Mark Hurvitz
Nisus Software Inc.


2003-02-11 10:59:13
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software