nisus.com
https://www.nisus.com/forum/

Count the number of replaced expressions
https://www.nisus.com/forum/viewtopic.php?f=6&t=118
Page 1 of 1

Author:  dakofi [ 2003-02-07 08:25:27 ]
Post subject:  Count the number of replaced expressions

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.

Author:  rmark [ 2003-02-11 10:59:13 ]
Post subject:  Count the number of replaced expressions

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.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/