Info-Mac Archive Downloads: text/wp/

Back to text/wp/

WordPerfect Extended Counting Macro (extended-counting-wp.hqx)

Download extended-counting-wp.hqx (4,853 KB)


From: WTLefercus@aol.com
Date: Tue, 29 Aug 1995 13:14:03 -0400
Subject: WordPerfect Extended Counting Macro

The WordPerfect for Macintosh macro, "Extended Counting" saved in the
attached document demonstrates an algorithm which allows you to count beyond
WordPerfect's variable limit of 32,767.

My purpose in writing this was to allow a prompt displaying a counter
variable to continue working after 32,767 iterations.

The Extended Counting macro updates a prompt each time the counter is
incremented by 1. Displaying the updated prompt takes much longer than
incrementing the variables needed to display the prompt. Therefore, if you
choose to update the prompt every 100 increments, you will notice a marked
increase in speed. In the macro code, I have commented out "If" statements
to update the prompt every 10, 100, or 1,000 passes.