************************ Word Processing Features Help ***********************

This special form is used for defining justification, word wrap, read only, 
and look-up definitions for fields.

Field justification and word wrap operations are handled dynamically as you 
fill in the form.  Fields defined to justify right, left, or center will be 
justified at the time you move the cursor out of the field.  Word wrapping 
occurs as you type and is always on for fields defined to have it.

Turning on word wrapping for a field is done by specifying the next field 
wrapping is to take place to.  For instance, field 1 may wrap to field 2, 2 to 
3, etc.  However, wrapping doesn't have to occur about consecutive fields.  
You can define two adjacent columns of fields where each column wraps 
independently as you type (notice one column would have even field numbers and 
the other odd). 

Read only fields are useful for information that is loaded from a file or 
database which is to be displayed but not modified.  Note that the first field 
of this special form shows the name of the form you are editing.  It is a read 
only field and you are not allowed to modify it. 

The look-up facility of Form Master is a convenient and powerful way to fill 
in many fields in your form at once.  You can place 'Jones' into a look-up 
field and Form Master can then replace 'Jones' with the full name and fill in 
his address into other fields.  Another application could be entering a part 
number and Form Master fills in the description and price into other fields.  
Rules for the content and naming of look-up files are given below.  Three 
different look up files may be defined for your form.  A field can use any one 
of the three as you specify on this form.  Field look-ups require the user to 
press F4 (unless re-defined) or Alt-F to execute. 

Fields are specified by their number.  They are numbered in order beginning 
with 1.  To help you remember which field is which, F6 ON THIS FORM WILL 
DISPLAY THE FIELDS IN ORDER showing row, column, and length in characters. 

RULES:

There are 5 columns of fields on this special form.  List the field number of 
those fields you want to operate on in the first column.  If you want a 
particular field to right, left, or center justify, place an 'R', 'L', or 'C' 
in the second column.  If you want a field to word wrap to another field, 
place the number of the 'wrap-to' field in the third column.  If you want a 
field to be 'read only', place a 'Y' in the fourth field.  If you want a field 
to be used for field look-ups, place a '1', '2', or '3' in the fifth field. 

EXAMPLE:

You want fields 1 through 3 to word wrap, field 4 to be read only, field 5 to 
right justify, and field 6 to have look-up capability from look-up file number 
1.  Enter the fields as follows: 
      Field   Just   Wrap to   R/O   Look-up
      -----   ----    -----    ---    -----
        1               2
        2               3
        4                       Y
        5       R
        6                               1

WARNING:  Avoid fields having the following combinations of features as the 
results will probably not be desirable:
    justify with word wrap, read only, or look-up
    word wrap with read only

NOTES:

If you edit your form and fields are added, removed, or their ordering is 
changed, you must make corresponding changes here to account for the changes 
in the field numbers.  Otherwise, these features may not work properly. 

All field entries on this special form are checked when returning to the Form 
Master main menu.  Invalid entries will be shown on the display and replaced 
with defaults.

****************************** Look-Up Files *********************************

A look-up file is built with an editor or word processor.  The file must be 
created free of such things as formatting instructions, footers, headers, dot 
commands, etc.  If you are using Word Star, be sure to create a non document 
file.  You can even use the Form Master editor providing you use the import 
/export functions on the main menu (you are limited to 132 lines - the maximum 
length of a form).

The format of a look-up file is very simple.  Place the look-up 'key' so it 
begins in column 1 on any line.  It must be followed by a space, then followed 
by what is to be substituted.  Consider the line: 

1234 Radiator

'1234' is the key and 'Radiator' is the replacement.  If you placed '1234' in 
a look-up field then executed a look-up, 'Radiator' would replace '1234' in 
that field. 

Suppose further you want to have the price of $100.00 appear in the field 
following the look-up field.  Then the VERY NEXT line in the look-up file 
should have:

+1 $100.00

The '+1' means 'plus 1 field' from the look-up field.  The remainder of the 
line shows the replacement item for the plus 1 field.  Analogously, a '-11' 
would mean 'minus 11 fields' from the look-up field.  Here is an example file 
(inside the dashes) containing more than one item: 

    +-------------------------+
    |1234 Radiator            | <-- look-up item 1
    |+1 $100.00               |
    |65 Fuel Pump             | <-- look-up item 2
    |+1 $50.00                |
    |Air Filter Air Filter    | <-- look-up item 3
    |+1 $5.00                 |
    +-------------------------+

Item 3 shows how 'Air Filter' can be used to replace itself.  This makes 
sense if all you want to do is have the price appear in the next field. 

You can substitute as many fields as you want with one look-up.  A 'key' line 
can be followed by multiple lines of '+n' and '-n' AS LONG AS THE LINES ARE 
CONSECUTIVE: 

    +-------------------------+
    |1234 Radiator            |
    |+1 $100.00               |
    |-4 Ajax Distributors     |
    |-3 ajax address...       |
    |                         |
    |65 Fuel Pump             |
    |+1 $50.00                |
    +-------------------------+

The previous look-up file will replace a look-up field having '1234' with 
'Radiator', place $100.00 in the next field, then place the name of the 
distributor and address at 4 and 3 fields back.  Notice the blank line.  It 
doesn't do anything except make the look-up file more readable.  However, the 
blank line should not lie between the lines beginning with '1234' and '-3' in 
the above example. 

You can separate the 'key' and the 'replacement' items by more than one space 
if you want.  This effectively adds spaces on the front of the 'replacement' 
when it is substituted into a field.  This is also true for lines beginning 
with a '+' or '-'. 

As you can see, look-up keys should not begin with a '+' or '-' as this 
conflicts with their use for multiple field substitutions. 

Look-up File Names:  You have two options for naming your look-up file(s):

(1)     Use the same name as your form but with an extension of '.LU1', 
        '.LU2', and '.LU3' for the three look-up files.  In most cases only 
        one look-up file is needed so don't feel you have to use more than 1. 
        However, it may be convenient to keep clients and part numbers in 
        separate files.

(2)     If 2 or more forms are to use the same look-up file(s), create a file 
        with the same name as your form but with an extension of '.LUP'.  This 
        file is created by an editor and has three lines in it.  Line 1 has 
        the name of the first look-up file, line 2 the second, and line 3 the 
        third.  The name of each file can be any valid DOS file name with the 
        path included as long as it isn't longer than 40 characters.

The second option allows one look-up file to be shared by multiple forms.  
Thus, a change to an address list supporting many forms needs to be done only 
once, instead of having to change a separate look-up file for each form. 

During a look-up, Form Master checks for the existence of the '.LUP' file.  If 
it doesn't exist, it assumes the look-up file to end with a '.LU1', '.LU2', or 
'.LU3' extension, whichever applies for the field.

Any '.LU1', '.LU2', '.LU3', or '.LUP' files you create must reside in the same 
directory as your form. 

