Programmer's WorkBench (pwb.hlp) (Table of Contents; Topic list)
Text Macros
 Description                               Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     One of the simplest macros is the text macro. The definition of a
     text macro consists of a string──no functions are necessary. When
     PWB encounters a string while executing a macro, PWB types the
     string.
 
     Commonly entered text can be defined as a text macro and typed
     using a single key assigned to the macro. For example, the macro:
 
          var := "variable"
 
     types the word 'variable'. If you have a lot of text macros, you
     can run out of keys. However, a macro can be executed by name──it
     doesn't have to be assigned to a key. For example, the macro above
     can be executed as follows:
 
       1. Execute the Arg function («arg»).
 
       2. Type the name of the macro or function to execute. In this
          case, 'var'.
 
       3. Execute the Execute function («execute»).
 
     With two additional macros, you can build a shorthand mechanism
     where a single key expands an abbreviation in the file.
     See: Macro Example: Expanding Text Abbreviations
                                    -♦-