APPLICATION NOTE #115 PUTTING DEFINED TEXT ON THE COMMAND LINE Rev. 01 This application note describes a program that lets XyWrite III Plus users put defined text onto the command line. This program is useful if you want to search for a long string of text without retyping it on the command line. CREATING THE PROGRAM To create a program that will put defined text into the command line, first decide on a name for the program (we'll use DEFINE.PGM), and select a Save/Get key that will be reserved for this program (for example, Save/Get 9). 1. Create a new program file. Type: F5nep define.pgm 2. Press: Ctrl-F9 (to switch to expanded display) 3. Press: Scroll Lock (to turn record mode on) 4. Select the Save/Get key that the program will use to hold defined text (for example, Save/Get 9). Press: F2-9 5. Press: Scroll Lock (to turn record mode off) 6. Type: F5pfunc gh 7. Press: Ctrl-< 8. Type: pv9 9. Press: Ctrl-> 10. Type: F5pfunc gt 11. Press: Ctrl-< 12. Type: ex 13. Press: Ctrl-> Result: Your completed program file should look like this: SV 9GH <>GT<> 14. Store the program file. USING THE PROGRAM To use the program DEFINE.PGM: 1. Assign the program to an available Save/Get key. (Don't use the Save/Get key you reserved in the previous procedure. That key is used to hold defined text; the key you are assigning in this step is used to hold the program.) Type: F5ldpm define.pgm,c 2. Define the text you want to save. 3. Move the cursor to point in the command line that you want the text inserted. 4. Press: Alt-C Result: The text you defined in Step 2 is entered in the command line at the current cursor location. Text that is already in the command line is not overwritten. Notes: To make sure your program is always loaded, you could put the LDPM command in your startup file. For more information about XyWrite's programming language, refer to Chapter 5 of the XyWrite Reference Guide.