Top Navigational Bar

Prompt Positioning In A Macro Using {NTOK}
DocumentID: 650418
Revision Date: 29-Feb-96 8:28:59 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Symptoms: The customer is writing a macro that will allow him to enter values for a menu and then the macro will calculate the positions for him according to what he enters. He is able to come up with a decimal value but he needs to convert that to ascii or some value that he can use. We found that by doing Alt-27 through 31 and then doing a {KTON} we did not get a sequential run of numbers. Is there a way that he can get what he wants? Solutions: Simply use the {NTOK} command with a number following the {^P} positioning command. For example, to position the prompt at column 0 on line 14, use the following positioning command:
{^P}{NTOK}0~{NTOK}14~
Follow these commands with your regular prompt statement.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.