MacTrove  — Classic Macintosh Archive
 
 Home Software Hardware Docs Magazines Forums Search
Search:   Software, forums, magazines & more

Extended Counting Wp

File extended-counting-wp.hqx
Size 4.7 KB
Category Text Processing
↓ Download extended-counting-wp.hqx

Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute corrections, and join the community chat.

About

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.

MacTrove — Classic Macintosh Archive — Full site | Software | Search
Classic version — compatible with older browsers.