home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR8 / WP60DOSM.ZIP / CONCEPTS.ASC next >
Text File  |  1993-09-22  |  31KB  |  826 lines

  1. C O N T E N T S
  2.  
  3. WordPerfect Macros Manual
  4. ─────────────────────────────────────────────────────────────────
  5. Converting 5.1 Macros
  6. Recording, Editing, and Compiling 6.0 Macros
  7. Variables and Arrays
  8. Loops and Subroutines
  9. Operators
  10. List of Shipping Macros
  11. Appendices
  12. Glossary
  13. Converting 5.1 Macros to 6.0
  14.  
  15. ─────────────────────────────────────────────────────────────────
  16. Macros are converted from 5.1 to 6.0 with the conversion utility
  17. MCV.EXE.  This utility is executed from a DOS prompt by typing
  18. MCV.  You can either include a complete command line using the
  19. syntax below, or allow the utility to prompt you for the source
  20. and destination of the macros to convert.  If you want to cancel
  21. the conversion at any point, press ESC, Cancel, Exit, or
  22. Ctrl+Break.  The conversion will quit after converting the
  23. current file.
  24.  
  25. Syntax:        MCV Options Source Destination
  26.  
  27. Parameters:    Options (optional)
  28.  
  29.                Option         Description
  30.                ═════════════════════════════════════════════════
  31.                /b             If a 5.1 macro is designed to
  32.                               execute only when block is on,
  33.                               conversion with this option assumes
  34.                               that the macro will still only be
  35.                               executed when block is on.
  36.                /h             Displays the conversion utility
  37.                               help screen giving the syntax and
  38.                               list of start-up options.
  39.                /l-logfile     Specifies the name of a file to
  40.                               which all on-screen messages
  41.                               associated with the conversion are
  42.                               saved.
  43.                /o             Allows the utility to automatically
  44.                               replace the destination file if it
  45.                               already exists.  The utility will
  46.                               not prompt for replacement.
  47.                /q             Removes quotation marks from text
  48.                               strings.
  49.                /s             Conversion uses 6.0 macro command
  50.                               abbreviations.
  51.                ═════════════════════════════════════════════════
  52.  
  53.                Source
  54.                The name of a macro, or wildcard characters
  55.                representing a group of macros, to convert.
  56.  
  57.                Destination
  58.                The path and/or name of the converted macro.
  59.  
  60.                              ────  ────
  61. Recording, Editing and Compiling 6.0 Macros
  62.  
  63. ─────────────────────────────────────────────────────────────────
  64.  
  65. Creating WordPerfect 6.0 macros is a process of recording,
  66. editing and compiling macro commands.  Each part of the process
  67. will be described in this section.
  68.  
  69. Recording Macros
  70.  
  71. There are several ways to record macros.  You can let WordPerfect
  72. record commands for you, or you can type in the appropriate
  73. commands yourself.  You can also use these two methods in
  74. combination.
  75.  
  76.          To record a macro,
  77.  
  78.          1  Choose Macro from the Tools menu, then choose Record.
  79.  
  80.             Alternate Method: Or Press Ctrl+F10
  81.  
  82.          2  Type a filename for the macro.  WordPerfect assigns a
  83.             .WPM extension to the filename for you.
  84.  
  85.          3  Choose OK to begin recording the macro.
  86.  
  87. The message "Recording Macro" displays in the lower left corner
  88. of the document window throughout the recording process. 
  89. WordPerfect records commands from the keyboard (including any
  90. text you type) as well as selections made with the mouse. 
  91. However, while a macro is recording, the mouse cannot be used to
  92. position the cursor in the document window.  If you want to
  93. position the cursor in the document window, you must use the
  94. keyboard.
  95.  
  96.          To stop recording,
  97.  
  98.          4  Choose Macro from the Tools menu, then choose Stop.
  99.  
  100.             Alternate Method: Or Press Ctrl+F10
  101.  
  102. You can record programming commands such as ASSIGN and system
  103. variables such as ?Name by selecting them from the Macro Control
  104. dialog box.
  105.  
  106.          To record Programming Commands or System Variables,
  107.  
  108.          1  Press Ctrl+PgUp, then select Macro Commands.
  109.  
  110.             Alternate Method: Or Press Ctrl+PgUp, Ctrl+PgUp
  111.  
  112.          2  Highlight the command or variable to record, then
  113.             press Enter and fill in the appropriate parameters.
  114.  
  115.          3  Choose Insert.
  116.  
  117.  
  118. Editing A Macro
  119.  
  120. Since WordPerfect 6.0 macros do not need a macro editor, they can
  121. be opened into, and edited from, any document window.
  122.  
  123.          To open a macro,
  124.  
  125.          1  Choose Open from the File menu
  126.  
  127.             Alternate Method: Or Press Shift+F10
  128.  
  129.          2  Type the filename of a macro, including the .WPM
  130.             extension.
  131.  
  132.          3  Choose OK
  133.  
  134. The macro is opened into the current document window.  You can
  135. type in new commands or edit existing ones.  You can also record
  136. Programming Commands or System Variables with the method
  137. described in Recording Macros.  If you want to record Product
  138. Commands, such as Margin Top, you can switch to a recording mode.
  139.  
  140.          To record while editing,
  141.  
  142.          1  Press Ctrl+PgUp, then choose Macro Record Document.
  143.  
  144.          2  Choose OK.
  145.  
  146. The message "Edit Macro: Press Shft+F3 to Record" will display in
  147. the lower left corner of the document window.  If you switch to
  148. record, the recorded commands are inserted into your macro at the
  149. cursor.  You can switch between recording and editing as many
  150. times as you want.
  151.  
  152.          To stop editing,
  153.  
  154.          4  Choose Exit from the File menu.
  155.  
  156.          5  Choose Save and Exit.
  157.  
  158. Compiling a Macro
  159.  
  160. A macro compiler is used to compile or "translate" macros so that
  161. WordPerfect can play them.
  162.  
  163.          To compile a macro,
  164.  
  165.          1  Save the macro.
  166.  
  167.          or
  168.  
  169.          2  Play the macro.
  170.  
  171. If you receive an error message during the compilation, you can
  172. either edit the macro or save the macro.  If you choose to save
  173. the macro, the errors will still need to be corrected before it
  174. will play.  If you choose to edit the macro, the macro file opens
  175. and your cursor is placed somewhere after the problem.
  176.  
  177. The compiler is a useful tool for troubleshooting macro problems. 
  178. However, it can only make a "best guess" as to what the macro is
  179. actually designed to accomplish.  As a result, errors given by
  180. the compiler sometimes serve as direction to, rather than
  181. specific identification of, the reported problem.
  182.          
  183.                              ────  ────
  184. Variables and Arrays
  185.  
  186. ─────────────────────────────────────────────────────────────────
  187.  
  188. Variables
  189.  
  190. A variable represents a place in memory where data is stored.  As
  191. its name indicates, the data in a variable is changeable.  Using
  192. variables, you can calculate values and use text that may change
  193. during the execution of a macro.  WordPerfect uses two types of
  194. variables: system variables and user-defined variables.
  195.  
  196.    System Variables
  197.  
  198.    System variables are variables that WordPerfect creates and
  199.    maintains.  These variables contain information about the
  200.    current state of WordPerfect.  You cannot change the names or
  201.    contents or these variables, but you can obtain and use their
  202.    contents in a macro.  Some system variables contain values
  203.    corresponding to the enumerated types or numeric equivalents
  204.    of a product command.  If you want to evaluate the variable
  205.    with programming commands such as IF or WHILE, the expression
  206.    can contain either the enumerated type or its numeric
  207.    equivalent.  If you type the contents of the variable, the
  208.    Type command will only type the numeric equivalent.  For a
  209.    list and description of all system variables provided by
  210.    WordPerfect, see the System Variables Index.
  211.  
  212.    User-defined Variables
  213.  
  214.    User-defined variables are variables that you create and name,
  215.    and whose contents you determine.  You can perform operations
  216.    on these variables to change their contents.  There are three
  217.    types of user-defined variables: Local, Global, and
  218.    Persistent.  
  219.  
  220.    Variable Type     Description
  221.    ══════════════════════════════════════════════════════════════
  222.    ═══
  223.    Local             Available for use only in the current macro
  224.                      or in FUNCTIONs or PROCEDUREs containing a
  225.                      LOCAL command.
  226.    Global            Global variables are available for use
  227.                      anywhere in the current macro as well as in
  228.                      FUNCTIONs or PROCEDUREs in the current
  229.                      macro. 
  230.    Persistent        Persistent variables are available for use
  231.                      in any macro, any FUNCTION or PROCEDURE, as
  232.                      well as any merges executed in the current
  233.                      session of WordPerfect.
  234.    ══════════════════════════════════════════════════════════════
  235.    ═══
  236.  
  237.    You can specify the variable type using the programming
  238.    commands, LOCAL, GLOBAL, and PERSIST.  See the Macro Commands
  239.    Index for information on these commands.
  240.  
  241.    All user-defined variables can contain text or numbers.  There
  242.    are a number of programming commands that assign variables. 
  243.    See the Macro Commands Index for information on ASSIGN, CHAR,
  244.    FORNEXT, FOREACH, GETNUMBER, GETSTRING, GETNUMBER, and LOOK.
  245.  
  246.  
  247. Arrays
  248.  
  249. An array is a collection of related information called elements. 
  250. Arrays are useful for organizing the information and assigning
  251. consecutive variable names.  Array elements can be lists,
  252. categories, or any type of information you want contained in one
  253. location.
  254.  
  255. For example, to create an array containing the days of the week,
  256. you could use the ASSIGN command as follows:
  257.  
  258.    ASSIGN   (Day; {"Monday" ; "Tuesday" ; "Wednesday" ;
  259.             "Thursday" ; "Friday" ; "Saturday" ; "Sunday"})
  260.  
  261. When an ASSIGN command is constructed like this, "Day" becomes
  262. the array name and each of the days within the braces ({}) are
  263. elements of the array.  "Monday" is the first element, "Tuesday"
  264. is the second element, and so forth.  The elements are in quotes
  265. only because they are character expressions that may need to be
  266. typed out later.  Arrays can also contain numeric expressions and
  267. measurement expressions.  For more information on ASSIGN, see the
  268. Macro Commands Index.
  269.  
  270. To use the information contained in each element, you must create
  271. a variable by combining the array name with the appropriate
  272. subscript.  A subscript is a number enclosed in brackets ([]). 
  273. The number in the bracket should correspond to the position of
  274. the element you want to use.  For example, Since Thursday is the
  275. fourth element, its subscript is [4].  Consequently, the variable
  276. name used to access the word "Thursday" is Day[4].  This variable
  277. could be used to type "Thursday" using the Type command as
  278. follows:
  279.  
  280.    Type(Day[4])
  281.  
  282. Arrays are also created by simply declaring the array name along
  283. with a subscript and assigning the element contents as follows:
  284.  
  285.    Day[1]="Monday"
  286.    Day[2]="Tuesday"
  287.    Day[3]="Wednesday"
  288.  
  289. ...and so forth
  290.  
  291.                              ────  ────
  292. Loops and Subroutines
  293.  
  294. ─────────────────────────────────────────────────────────────────
  295.  
  296. A loop is a series of commands that repeat a number of times. 
  297. Loops are created with programming commands and are useful in
  298. macros if you want to perform a series of tasks but do not need
  299. to supervise every step of the process.  For example, you could
  300. have a macro search for and delete every occurrence of a specific
  301. word or create a certain number of labels.  Loops are also useful
  302. for obtaining information.  For example, you could create a macro
  303. to display a dialog box that prompts for mailing address
  304. information.  The dialog box would continue requesting
  305. information for new addresses until the user clicks on a "Last
  306. Address" button.
  307.  
  308. The following programming commands can be used to create loops. 
  309. See the Macro Commands Index for a complete description and
  310. example of each command.
  311.  
  312. Command Combination              Description
  313. ═════════════════════════════════════════════════════════════════
  314. #4264#FORNEXT - #4242#ENDFOR:    A set of commands repeats for a
  315.                                  specified number of times.
  316. #4266#FOREACH - #4242#ENDFOR:    A set of commands repeats for a
  317.                                  specified circumstance.
  318. #4282#IF - #4246#ENDIF:          A set of commands repeats if a
  319.                                  specified condition is
  320.                                  satisfied.
  321. #4340#REPEAT - #4386#UNTIL:         A set of commands repeats
  322.                                     until a condition has been
  323.                                     satisfied.
  324. #4396#WHILE - #4250#ENDWHILE:    A set of commands repeats only
  325.                                  while a specific condition
  326.                                  exists.
  327. ═════════════════════════════════════════════════════════════════
  328.  
  329. Subroutines
  330.  
  331. A subroutine is a set of commands you may want to execute several
  332. times in a macro.  Instead of entering the commands at several
  333. locations in the macro, you can include them only once and direct
  334. the macro to that location each time the commands are needed.  A
  335. subroutine is created with programming commands such as FUNCTION,
  336. LABEL, and PROCEDURE.  A macro is directed to a subroutine with
  337. programming commands such as CALL, GO, ONERROR, ONCANCEL, and
  338. ONNOTFOUND.  See the Macro Commands Index for more information on
  339. these commands.
  340.  
  341. Since there may be more than one subroutine in a macro, the name
  342. associated with each one must be unique.  The label name must be
  343. entered in the command that directs execution to the subroutine,
  344. for example GO(MyLabel).  The label must match the name of the
  345. FUNCTION, LABEL, or PROCEDURE to which execution is directed.
  346.  
  347.                              ────  ────
  348. Operators
  349.  
  350. ─────────────────────────────────────────────────────────────────
  351.  
  352. WordPerfect supports the evaluation of expressions with several
  353. operators.  Consequently, some order of evaluation must be
  354. followed.  The operator precedence used by WordPerfect is similar
  355. to the accepted precedence for mathematical operators in formal
  356. programming languages.
  357.  
  358. The following table shows the order in which operators are
  359. applied (operators of the same precedence are evaluated left to
  360. right in the expression):
  361.  
  362.          Order    Operators
  363.          ═════════════════════════════════════════════════
  364.          1        (), -(unary minus), +(unary plus), ~(bitwise
  365.                   not), NOT(logical not)
  366.          2        *(multiply), /(divide), %(mod), DIV(integer
  367.                   divide)
  368.          3        +(add), -(subtract)
  369.          4        <<(shift left)  >>(shift right)
  370.          5        <(less than), <=(less than or equal to),
  371.                   >(greater than), >=(greater than or equal to),
  372.                   <>(not equal) =(equal)
  373.          6        &(bitwise and), |(bitwise or), ^(bitwise xor)
  374.          7        AND(logical and), XOR(logical xor)
  375.          8        OR(logical or)
  376.          ═════════════════════════════════════════════════
  377.  
  378. You can override the operator precedence by placing parentheses
  379. around the elements you want evaluated first.  Elements inside
  380. the parentheses are always evaluated before the elements outside. 
  381. If parentheses are nested, the innermost parentheses are
  382. evaluated first.
  383.  
  384.                              ────  ────
  385. List of Shipping Macros
  386.  
  387. ─────────────────────────────────────────────────────────────────
  388.  
  389. The following predefined WordPerfect macros can help you perform
  390. several common tasks.  All of the following macros except
  391. ALLFONTS.WPM and LIBRARY.WPM are on the MACROS keyboard, and all
  392. of them except EXITALL.WPM and LIBRARY.WPM are also on the MACROS
  393. Button Bar (see Setup: Keyboard Layout and Button Bar for more
  394. information).  Although these macros are much easier to play from
  395. the keyboard or Button Bar, the files listed below are included
  396. so that you can modify them for your own needs.
  397.  
  398.       ALLFONTS.WPM
  399.       This macro types the names of all fonts for the current
  400.       printer in their respective typefaces.
  401.  
  402.       BULLET.WPM
  403.       This macro inserts a bullet character of your choice at the
  404.       beginning of the current paragraph or each paragraph in a
  405.       series of blocked paragraphs.
  406.  
  407.       CALC.WPM
  408.       This macro displays a calculator that you can use for
  409.       mathematical calculations.
  410.  
  411.       EDITCODE.WPM
  412.       This macro lets you easily edit codes.  For example, in
  413.       Reveal Codes you can place the cursor on a graphics box
  414.       code and use this macro to go quickly to the graphics box
  415.       editor.
  416.  
  417.       EXITALL.WPM
  418.       This macro returns you to the main editing screen from any
  419.       subscreen or dialog, such as the footnote editing screen.
  420.  
  421.       GLOSSARY.WPM
  422.       This macro lets you create and expand glossary entries.  A
  423.       glossary entry is an abbreviation such as ASAP (as soon as
  424.       possible).
  425.  
  426.       INITCAPS.WPM
  427.       This macro capitalizes the first letter of the current
  428.       word.
  429.  
  430.       LIBRARY.WPM
  431.       This macro contains a collection of functions and
  432.       procedures that are used by several of the other predefined
  433.       macros.  Any macro that contains the command
  434.       USE("LIBRARY.WPM") can use the functions and procedures
  435.       defined in LIBRARY.WPM.
  436.  
  437.       MEMO.WPM
  438.       This macro opens a menu that helps you format a memo,
  439.       letter, or fax cover sheet.
  440.  
  441.       MOD_ATRB.WPM
  442.       This macro helps you modify font attributes.
  443.  
  444.       NOTECVT.WPM
  445.       This macro opens a menu that lets you convert footnotes to
  446.       endnotes or endnotes to footnotes.
  447.  
  448.       PLEADING.WPM
  449.       This macro opens a menu that helps you create a style for
  450.       pleading papers.  It then inserts the style into your
  451.       document so that you can create a pleading paper.
  452.  
  453.       SPACETAB.WPM
  454.       This macro opens a menu that helps you convert spaces to
  455.       tabs.
  456.  
  457.                              ────  ────
  458. Appendix A:  Keystroke Numeric Equivalents
  459.  
  460. ─────────────────────────────────────────────────────────────────
  461. ──
  462.  
  463. Keystroke            Numeric
  464.                   Equivalent
  465. ═════════════════════════════════════════════════════════════════
  466. A                    97
  467. B                    98
  468. C                    99
  469. D                    100
  470. E                    101
  471. F                    102
  472. G                    103
  473. H                    104
  474. I                    105
  475. J                    106
  476. K                    107
  477. L                    108
  478. M                    109
  479. N                    110
  480. O                    111
  481. P                    112
  482. Q                    113
  483. R                    114
  484. S                    115
  485. T                    116
  486. U                    117
  487. V                    118
  488. W                    119
  489. X                    120
  490. Y                    121
  491. Z                    122
  492. 1                    49
  493. 2                    50
  494. 3                    51
  495. 4                    52
  496. 5                    53
  497. 6                    54
  498. 7                    55
  499. 8                    56
  500. 9                    57
  501. 0                    48
  502. ~                    126
  503. `                    96
  504. -                    45
  505. =                    61
  506. !                    33
  507. @                    64
  508. #                    35
  509. $                    36
  510. %                    37
  511. ^                    94
  512. &                    38
  513. *                    42
  514. (                    40
  515. )                    41
  516. _                    95
  517. +                    43
  518. [                    91
  519. [                    93
  520. \                    92
  521. {                    123
  522. }                    125
  523. |                    124
  524. ;                    59
  525. '                    39
  526. :                    58
  527. "                    34
  528. ,                    44
  529. .                    46
  530. /                    47
  531. <                    60
  532. >                    62
  533. ?                    63
  534. F1                   -8158
  535. F2                   -8159
  536. F3                   -7832
  537. F4                   -8157
  538. F5                   -8156
  539. F6                   -8155
  540. F7                   -8154
  541. F8                   -8153
  542. F9                   -8152
  543. F10                  -8151
  544. F11                  -8134
  545. F12                  -8133
  546. ALT+F1                  -8136
  547. ALT+F2                  -8135
  548. ALT+F3                  -8134
  549. ALT+F4                  -8133
  550. ALT+F5                  -8132
  551. ALT+F6                  -8131
  552. ALT+F7                  -8130
  553. ALT+F8                  -8129
  554. ALT+F9                  -8128
  555. ALT+F10              -8127
  556. ALT+F11              -6774
  557. ALT+F12              -7675
  558. CTRL+F1              -8124
  559. CTRL+F2              -8123
  560. CTRL+F3              -8122
  561. CTRL+F4              -8121
  562. CTRL+F5              -8120
  563. CTRL+F6              -8119
  564. CTRL+F7              -8118
  565. CTRL+F8              -8117
  566. CTRL+F9              -8116
  567. CTRL+F10             -8115
  568. CTRL+F11             -7759
  569. CTRL+F12             -7163
  570. SHIFT+F1             -8148
  571. SHIFT+F2             -8147
  572. SHIFT+F3             -8146
  573. SHIFT+F4             -8145
  574. SHIFT+F5             -8144
  575. SHIFT+F6             -8143
  576. SHIFT+F7             -8142
  577. SHIFT+F8             -8141
  578. SHIFT+F9             -8140
  579. SHIFT+F10               -8139
  580. SHIFT+F11               -8046
  581. SHIFT+F12               -7149
  582. Arrow Down           -8166
  583. Arrow Left           -8167
  584. Arrow Right          -8168
  585. Arrow Up             -8169
  586. Backspace               -8112
  587. Delete                  -8111
  588. End                  -8107
  589. Enter                -8182
  590. Escape                  -8160
  591. Home                 -8184
  592. Insert                  -8099
  593. Page Down               -8102
  594. Page Up              -8103
  595. Tab                  -8183
  596. ═════════════════════════════════════════════════════════════════
  597.  
  598.                              ────  ────
  599. Appendix B:  Key Names
  600.  
  601. ─────────────────────────────────────────────────────────────────
  602. ──
  603.  
  604. Key               Name
  605. ═════════════════════════════════════════════════════════════════
  606. F1                CancelKey
  607. F2                SearchDlg
  608. F3                RepeatDlg
  609. F4                Indent
  610. F5                ListKey
  611. F6                BoldKey
  612. F7                ExitDlg
  613. F8                UnderlineKey
  614. F9                EndField
  615. F10               FileSaveDlg
  616. F11               RevealCodesKey
  617. F12               BlockKey
  618. ALT+F1               WritingToolsDlg
  619. ALT+F2               ReplaceDlg
  620. ALT+F3               RevealCodes
  621. ALT+F4               BlockKey
  622. ALT+F5               MarkTextDlg
  623. ALT+F6               FlushRight
  624. ALT+F7               ColumnsTablesDlg
  625. ALT+F8               StyleDlg
  626. ALT+F9               GraphicsDlg
  627. ALT+F10           MacroPlayDlg
  628. ALT+F11           TableEdit
  629. ALT+F12           EnvelopeDlg
  630. CTRL+F1           ShellDlg
  631. CTRL+F2           SpellerDlg
  632. CTRL+F3           ScreenDlg
  633. CTRL+F4           MoveDlg
  634. CTRL+F5           OutlineDlg
  635. CTRL+F6           TabDecimal
  636. CTRL+F7           NotesDlg
  637. CTRL+F8           FontDlg
  638. CTRL+F9           MergeSortDlg
  639. CTRL+F10          MacroRecordDlg
  640. CTRL+F11          TabDlg
  641. CTRL+F12          Save
  642. SHIFT+F1          SetupDlg
  643. SHIFT+F2          SearchBackwardDlg
  644. SHIFT+F3          SwitchKey
  645. SHIFT+F4          IndentLeftRight
  646. SHIFT+F5          DateDlg
  647. SHIFT+F6          Center
  648. SHIFT+F7          PrintDlg
  649. SHIFT+F8          FormatDlg
  650. SHIFT+F9          MergeCodesDlg
  651. SHIFT+F10            FileRetrieveDlg
  652. SHIFT+F11            WPCharDlg
  653. SHIFT+F12
  654. ═════════════════════════════════════════════════════════════════
  655.  
  656.                              ────  ────
  657. Glossary
  658.  
  659. ─────────────────────────────────────────────────────────────────
  660.  
  661. Active
  662. An application, document window, or dialog box that is currently
  663. in use.
  664.  
  665. Character Expression
  666. A series of one or more WordPerfect characters enclosed in
  667. quotation marks so the macro will recognize the characters as
  668. text, not a variable.
  669.  
  670. Check Box
  671. A check box turns an option on or off.  If the check box contains
  672. an X, the option is turned on.  When text is selected in a
  673. document, a shaded check box indicates that the option is on in
  674. only part of the selected text.  You can select more than one
  675. check box in a group.
  676.  
  677.  
  678. Codes
  679. Formatting commands that make the computer and printer perform
  680. various procedures.  Codes are symbols that the computer and
  681. printer understand.  They can be edited in Reveal Codes.
  682.  
  683. Command Name
  684. The word or string of words that begin a macro command.  The
  685. command name generally indicates which feature is involved in
  686. executing a complete macro command.
  687.  
  688. Compile
  689. Before a macro can play for the first time, it must be compiled. 
  690. When a macro is compiled, the program checks all the commands to
  691. see if there are any errors and displays an error message if
  692. there are.  Only a macro with no errors can be played.  Some
  693. commands are designed to take effect during compilation while
  694. others occur during the actual playing of the macro.  Each time a
  695. macro is edited and saved, it must re-compile before it can be
  696. played.  The program will automatically compile macros for you.
  697.  
  698. Conditional Statement
  699. A statement created with macro programming commands such as IF
  700. and WHILE.  A conditional statement contains expressions such as
  701. text, numbers, or variables to be evaluated.  The flow or
  702. direction of the macro can be affected by the "condition" of
  703. these expressions at the time they are evaluated.
  704.  
  705. Dialog Box
  706. Dialog boxes let you communicate with the WordPerfect program. 
  707. They display warnings and messages and they let you select
  708. options and implement those options by choosing appropriate
  709. command buttons.  Dialog boxes must be closed before you can work
  710. in the document window.  When a dialog box option is unavailable
  711. and cannot be used, it will appear dim.
  712.  
  713.  
  714. Enumerated Type
  715. The parameters for certain product commands can only accept
  716. certain words.  These words are referred to as "enumerated
  717. types."  Each enumerated type ends in an exclamation point and
  718. has a numeric equivalent.  For example, the product command
  719. DisplayMode has one parameter and will only accept the words
  720. Text!, Graphics!, or FullPage!
  721. as entries in that parameter.
  722.  
  723. File
  724. A document or other type of information that has been saved to a
  725. computer disk under an identifying name.
  726.  
  727. File Format
  728. The pattern in which a file is organized.  Each application
  729. creates documents in a unique format which is not accessible by
  730. other applications unless those documents are converted to the
  731. new application's format.
  732.  
  733. Filename
  734. The name given to a file of information on disk.  The name may be
  735. up to eight characters long, with an  optional three letter
  736. extension, such as MYLETTER.ANN.
  737.  
  738. Macro Command
  739. An instruction for WordPerfect to carry out.  The instruction can
  740. be in the form of a programming command or a product command. 
  741. Many macro commands must be used together with other macro
  742. commands to be successful in giving a complete instruction.
  743.  
  744. Measurement Expression
  745. A number representing a measurement which can, but does not have
  746. to be followed by a unit of measurement character (", c, p, u). 
  747. If a unit of measurement character is not specified, the
  748. program's current unit of measurement will be used.  A
  749. measurement expression should not be enclosed in quotation marks.
  750.  
  751. Memory
  752. The temporary data storage area for a computer or printer.
  753.  
  754. Numeric Equivalent
  755. The ASCII value of a character.  Also, the number that can be
  756. used in place of an enumerated type.  For example, if you are
  757. using the FootnoteNumberMethod product command and want to set
  758. the numbering method parameter to Characters!, you can either use
  759. Characters! (the enumerated type) or 5 (its numeric equivalent).
  760.  
  761. Numeric Expression
  762. A number on which mathematical operations may be performed.  A
  763. numeric expression should not be enclosed in quotation marks.
  764.  
  765. Operator
  766. A symbol or word that performs a function on one or more
  767. expressions.  For  instance, operators compare expressions, link
  768. words together, and perform mathematical functions on numbers.
  769.  
  770. Parameter
  771. Represents which aspect of a feature the macro command is
  772. manipulating.  For instance, if you use the BoxCreate command to
  773. create a graphics box, you can use a parameter value to specify
  774. which type of graphics box to create.
  775.  
  776. Path
  777. The location of a certain file or directory in a computer disk
  778. drive or on a network.  A full path includes the drive, root
  779. directory, and any subdirectory names.  Each name is separated by
  780. a backslash (\).  For example, C:\WP60\LETTERS would refer to the
  781. LETTERS subdirectory in the WP60 directory on the C drive.
  782.  
  783. Relational Expression
  784. An expression used to evaluate parameters that have only two
  785. possible states: TRUE and FALSE.  A relational expression should
  786. not be enclosed in quotation marks.
  787.  
  788. Status Line
  789. The line at the bottom of the WordPerfect window that lists the
  790. current font and the position of your cursor.
  791.  
  792. Text Mode
  793. A type of screen display in which WordPerfect does not show all
  794. font attributes and formatting.  When Text Mode is on, you cannot
  795. see your document as it will print, but you may be able to work
  796. more quickly because the computer does not take as much time
  797. updating the appearance of the text.
  798.  
  799. Text Box
  800. In a dialog box, the area in a dialog box where you type text or
  801. where WordPerfect types text for you.  The selection cursor must
  802. be in the text box before you can begin to type.  In a graphics
  803. box, a type of graphics box that can be used for placing and
  804. rotating text.
  805.  
  806. Text File
  807. A file saved in ASCII (DOS).  It contains text, spaces, and
  808. returns, but no formatting codes.
  809.  
  810. Toggle
  811. A feature or option that is turned on or off with the same
  812. keystroke or command.  If the feature or option is turned on or
  813. off with a macro command, the command generally does not require
  814. parameters.
  815.  
  816. Variable
  817. A variable represents a place in memory where information is
  818. stored.  Variables can store character, numeric, measurement and
  819. relational expressions.  The value contained in a variable is
  820. changeable.  Variables are often used to keep track of words,
  821. numbers, and measurements that change while the macro plays.
  822.  
  823.  
  824.                              ────  ────